Add more warnings source to 1.6) and fix warnings
[nikiroo-utils.git] / src / be / nikiroo / utils / serial / SerialUtils.java
index be18769ee06967cd5c5a78439fcfe2afccb27d50..c222bc3e3d6334a76dcf03ad133a846609aed0b0 100644 (file)
@@ -299,10 +299,9 @@ public class SerialUtils {
                        String type = CustomSerializer.typeOf(encodedValue);
                        if (customTypes.containsKey(type)) {
                                return customTypes.get(type).decode(encodedValue);
-                       } else {
-                               throw new UnknownFormatConversionException(
-                                               "Unknown custom type: " + type);
                        }
+                       throw new UnknownFormatConversionException("Unknown custom type: "
+                                       + type);
                } else if (encodedValue.equals("NULL") || encodedValue.equals("null")) {
                        return null;
                } else if (encodedValue.endsWith("\"")) {