svn commit: r757113 - /ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r757113 - /ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java

doogie-3
Author: doogie
Date: Sun Mar 22 00:41:16 2009
New Revision: 757113

URL: http://svn.apache.org/viewvc?rev=757113&view=rev
Log:
Don't use ArrayUtil for helper(equals/hashCode).

Modified:
    ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java

Modified: ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java?rev=757113&r1=757112&r2=757113&view=diff
==============================================================================
--- ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java (original)
+++ ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java Sun Mar 22 00:41:16 2009
@@ -23,6 +23,7 @@
 import java.lang.ref.SoftReference;
 import java.net.URL;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -66,7 +67,6 @@
 import org.webslinger.lang.ObjectUtil;
 import org.webslinger.servlet.WebslingerServlet;
 import org.webslinger.util.TTLObject;
-import org.webslinger.collections.ArrayUtil;
 import org.webslinger.collections.CollectionUtil;
 
 public class WebslingerContextMapper extends AbstractMappingWebslingerServletContextFactory {
@@ -178,7 +178,7 @@
             }
             delegatorName = server.getString("delegatorName");
             dispatcherName = server.getString("dispatcherName");
-            hashCode = target.hashCode() ^ ObjectUtil.hashCodeHelper(delegatorName) ^ ArrayUtil.hashCodeHelper(bases);
+            hashCode = target.hashCode() ^ ObjectUtil.hashCodeHelper(delegatorName) ^ Arrays.hashCode(bases);
         }
 
         public String getContextPath() {
@@ -207,7 +207,7 @@
             if (!contextPath.equals(other.contextPath)) return false;
             if (!target.equals(other.target)) return false;
             if (!ObjectUtil.equalsHelper(delegatorName, other.delegatorName)) return false;
-            return ArrayUtil.equalsHelper(bases, other.bases);
+            return Arrays.equals(bases, other.bases);
         }
     }
 }