[jbosscache-commits] JBoss Cache SVN: r5291 - core/trunk/src/main/java/org/jboss/cache/marshall.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Tue Feb 5 10:41:33 EST 2008
Author: manik.surtani at jboss.com
Date: 2008-02-05 10:41:33 -0500 (Tue, 05 Feb 2008)
New Revision: 5291
Modified:
core/trunk/src/main/java/org/jboss/cache/marshall/CacheMarshaller200.java
Log:
Unnecessary boxing
Modified: core/trunk/src/main/java/org/jboss/cache/marshall/CacheMarshaller200.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/marshall/CacheMarshaller200.java 2008-02-05 14:33:41 UTC (rev 5290)
+++ core/trunk/src/main/java/org/jboss/cache/marshall/CacheMarshaller200.java 2008-02-05 15:41:33 UTC (rev 5291)
@@ -540,7 +540,7 @@
private Object unmarshallObject(ObjectInputStream in, UnmarshalledReferences refMap) throws Exception
{
byte magicNumber = in.readByte();
- Integer reference = 0;
+ int reference = 0;
Object retVal;
switch (magicNumber)
{
@@ -551,11 +551,6 @@
{
reference = readReference(in);
return refMap.getReferencedObject(reference);
-// if (!refMap.containsKey(reference))
-// {
-// throw new IOException("Unable to locate object reference " + reference + " in byte stream!");
-// }
-// return refMap.get(reference);
}
else break;
case MAGICNUMBER_SERIALIZABLE:
@@ -654,7 +649,6 @@
private String unmarshallString(ObjectInputStream in) throws Exception
{
- //return StringUtil.readString(in, null);
return (String) in.readObject();
}
More information about the jbosscache-commits
mailing list