Skip to content
Permalink
Browse files

Fixed: Remove Raw type cast warning in ‘ObjectType’

Use ‘UtilGenerics#cast’ for shorter syntax.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857082 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 7, 2019
1 parent 148be77 commit f2a72984e1cc387dc6416c174cbb0ccd811e7b61
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java
@@ -335,7 +335,7 @@ public static Object simpleTypeOrObjectConvert(Object obj, String type, String f

if (converter != null) {
if (converter instanceof LocalizedConverter) {
LocalizedConverter<Object, Object> localizedConverter = (LocalizedConverter) converter;
LocalizedConverter<Object, Object> localizedConverter = UtilGenerics.cast(converter);
if (timeZone == null) {
timeZone = TimeZone.getDefault();
}

0 comments on commit f2a7298

Please sign in to comment.
You can’t perform that action at this time.