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
This commit is contained in:
Mathieu Lirzin
2019-04-07 19:33:44 +00:00
parent 148be77060
commit f2a72984e1
@@ -335,7 +335,7 @@ public class ObjectType {
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();
}