svn commit: r1075527 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java

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

svn commit: r1075527 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java

mrisaliti
Author: mrisaliti
Date: Mon Feb 28 20:59:37 2011
New Revision: 1075527

URL: http://svn.apache.org/viewvc?rev=1075527&view=rev
Log:
Remove some warning in ContextAccessor (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java?rev=1075527&r1=1075526&r2=1075527&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ContextAccessor.java Mon Feb 28 20:59:37 2011
@@ -104,7 +104,7 @@ public class ContextAccessor<T> {
     /** The equals and hashCode methods are imnplemented just case this object is ever accidently used as a Map key */
     @Override
     public boolean equals(Object obj) {
-        if (obj instanceof ContextAccessor) {
+        if (obj instanceof ContextAccessor<?>) {
             ContextAccessor<?> contextAccessor = (ContextAccessor<?>) obj;
             if (this.name == null) {
                 return contextAccessor.name == null;