comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 14158:fd7fcd2d2072

replaced == with .equals() for comparisons between JavaMethod/JavaField/JavaType values
author Doug Simon <doug.simon@oracle.com>
date Wed, 12 Mar 2014 21:47:35 +0100
parents 9d864856336a
children 7544068e1a91
comparison
equal deleted inserted replaced
14157:8c4a3d9308a7 14158:fd7fcd2d2072
163 return MetaUtil.format("%h.%n", targetMethod()); 163 return MetaUtil.format("%h.%n", targetMethod());
164 } 164 }
165 165
166 public static MethodCallTargetNode find(StructuredGraph graph, ResolvedJavaMethod method) { 166 public static MethodCallTargetNode find(StructuredGraph graph, ResolvedJavaMethod method) {
167 for (MethodCallTargetNode target : graph.getNodes(MethodCallTargetNode.class)) { 167 for (MethodCallTargetNode target : graph.getNodes(MethodCallTargetNode.class)) {
168 if (target.targetMethod == method) { 168 if (target.targetMethod.equals(method)) {
169 return target; 169 return target;
170 } 170 }
171 } 171 }
172 return null; 172 return null;
173 } 173 }