Skip to content

Commit

Permalink
Fixed: Remove Raw type cast warning in ‘ObjectType’
Browse files Browse the repository at this point in the history
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 f2a7298
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f2a7298

Please sign in to comment.