Skip to content
Snippets Groups Projects
Commit 69c6ae9e authored by Mamadu-lamarana Bah's avatar Mamadu-lamarana Bah :speech_balloon:
Browse files

appel explicite de toString() no nécessaire si concaténation avec des string (appel implicite)

parent 33a1c45c
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ public final class ConstructorConstructor {
T set = (T) EnumSet.noneOf((Class) elementType);
return set;
} else {
throw new JsonIOException("Invalid EnumSet type: " + type.toString());
throw new JsonIOException("Invalid EnumSet type: " + type);
}
} else {
throw new JsonIOException("Invalid EnumSet type: " + type.toString());
......@@ -203,7 +203,7 @@ public final class ConstructorConstructor {
T map = (T) new EnumMap((Class) elementType);
return map;
} else {
throw new JsonIOException("Invalid EnumMap type: " + type.toString());
throw new JsonIOException("Invalid EnumMap type: " + type);
}
} else {
throw new JsonIOException("Invalid EnumMap type: " + type.toString());
......
......@@ -55,7 +55,7 @@ public class ParameterizedTypeFixtures {
if (Primitives.isWrapperType(Primitives.wrap(clazz))) {
return obj.toString();
} else if (obj.getClass().equals(String.class)) {
return "\"" + obj.toString() + "\"";
return "\"" + obj + "\"";
} else {
// Try invoking a getExpectedJson() method if it exists
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment