Author: mthl
Date: Sun Apr 7 19:33:44 2019
New Revision: 1857082
URL:
http://svn.apache.org/viewvc?rev=1857082&view=revLog:
Fixed: Remove Raw type cast warning in ‘ObjectType’
Use ‘UtilGenerics#cast’ for shorter syntax.
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java?rev=1857082&r1=1857081&r2=1857082&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java Sun Apr 7 19:33:44 2019
@@ -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();
}