Author: mrisaliti
Date: Fri Mar 4 23:39:12 2011
New Revision: 1078219
URL:
http://svn.apache.org/viewvc?rev=1078219&view=revLog:
Remove some warning as unchecked "temporary" in JdbmSerializer/JdbmRecordManager (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmRecordManager.java
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmSerializer.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmRecordManager.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmRecordManager.java?rev=1078219&r1=1078218&r2=1078219&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmRecordManager.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmRecordManager.java Fri Mar 4 23:39:12 2011
@@ -75,6 +75,7 @@ public class JdbmRecordManager implement
manager.delete(l);
}
+ @SuppressWarnings("unchecked")
public Object fetch(long l, Serializer s) throws IOException {
return manager.fetch(l, s);
}
@@ -91,6 +92,7 @@ public class JdbmRecordManager implement
return manager.getRootCount();
}
+ @SuppressWarnings("unchecked")
public long insert(Object o, Serializer s) throws IOException {
return manager.insert(o, s);
}
@@ -107,6 +109,7 @@ public class JdbmRecordManager implement
manager.setRoot(i, l);
}
+ @SuppressWarnings("unchecked")
public void update(long l, Object o, Serializer s) throws IOException {
manager.update(l, o, s);
}
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmSerializer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmSerializer.java?rev=1078219&r1=1078218&r2=1078219&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmSerializer.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/JdbmSerializer.java Fri Mar 4 23:39:12 2011
@@ -31,7 +31,7 @@ import org.ofbiz.base.util.UtilObject;
* (needed do to the fact that we do dynamic class loading)
*
*/
-@SuppressWarnings("serial")
+@SuppressWarnings({"serial", "unchecked"})
public class JdbmSerializer implements Serializer, ISerializationHandler {
public byte[] serialize(Object o) throws IOException {