Fixed deprecated code and copyright years.

This commit is contained in:
Christian P. MOMON 2021-01-18 19:43:48 +01:00
parent d186965f7f
commit b2adaba8ba
3 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2008-2020 Christian Pierre MOMON * Copyright (C) 2008-2021 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2017-2018 Christian Pierre MOMON * Copyright (C) 2017-2021 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -58,14 +58,14 @@ public class StringsDemo
strings.appendln("========== DEMO #2;"); strings.appendln("========== DEMO #2;");
strings.appendln(); strings.appendln();
strings.appendln("Easy to concatenate different types."); strings.appendln("Easy to concatenate different types.");
strings.append("Boolean: ").append(true).append(" ").appendln(new Boolean(false)); strings.append("Boolean: ").append(true).append(" ").appendln(Boolean.valueOf(false));
strings.append("Char: ").append('e').append(" ").appendln(new Character('e')); strings.append("Char: ").append('e').append(" ").appendln(Character.valueOf('e'));
strings.append("Byte : ").append((byte) 5).append(" ").appendln(new Byte((byte) 5)); strings.append("Byte : ").append((byte) 5).append(" ").appendln(Byte.valueOf((byte) 5));
strings.append("Short: ").append((short) 55).append(" ").appendln(new Short((short) 55)); strings.append("Short: ").append((short) 55).append(" ").appendln(Short.valueOf((short) 55));
strings.append("Integer: ").append(555).append(" ").appendln(new Integer(555)); strings.append("Integer: ").append(555).append(" ").appendln(Integer.valueOf(555));
strings.append("Long: ").append(5555L).append(" ").appendln(new Long(5555)); strings.append("Long: ").append(5555L).append(" ").appendln(Long.valueOf(5555));
strings.append("Float: ").append((float) 5555.5).append(" ").appendln(new Float(5555.5)); strings.append("Float: ").append((float) 5555.5).append(" ").appendln(Float.valueOf((float) 5555.5));
strings.append("Double: ").append(5555.55).append(" ").appendln(new Double(5555.55)); strings.append("Double: ").append(5555.55).append(" ").appendln(Double.valueOf(5555.55));
strings.append("String: ").append("abcde").append(" ").appendln(new String("abcde")); strings.append("String: ").append("abcde").append(" ").appendln(new String("abcde"));
strings.append("Object: ").appendln(new Date()); strings.append("Object: ").appendln(new Date());
strings.append("Array of booleans: ").appendln(StringsUtils.toStringList(new boolean[] { true, false, true })); strings.append("Array of booleans: ").appendln(StringsUtils.toStringList(new boolean[] { true, false, true }));
@ -109,7 +109,7 @@ public class StringsDemo
strings.appendln("========== DEMO #4;"); strings.appendln("========== DEMO #4;");
strings.appendln(); strings.appendln();
strings.appendln("Advanced features."); strings.appendln("Advanced features.");
strings.append("Boolean: ").append(true).append(" ").appendln(new Boolean(false)); strings.append("Boolean: ").append(true).append(" ").appendln(Boolean.valueOf(false));
System.out.println(strings.toString()); System.out.println(strings.toString());
} }
@ -121,7 +121,7 @@ public class StringsDemo
strings.appendln("========== DEMO #5;"); strings.appendln("========== DEMO #5;");
strings.appendln(); strings.appendln();
strings.appendln("Funny features."); strings.appendln("Funny features.");
strings.append("Boolean: ").append(true).append(" ").appendln(new Boolean(false)); strings.append("Boolean: ").append(true).append(" ").appendln(Boolean.valueOf(false));
System.out.println(strings.toString()); System.out.println(strings.toString());
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2020 Christian Pierre MOMON * Copyright (C) 2013-2021 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *