From b45ec3291d0f7380e747c59c30262fb5b68d1743 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 7 Jan 2015 16:35:49 -0800 Subject: [PATCH] 456003: == to equals --- .../patterns/WildAnnotationTypePattern.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java index 984b4ee4c..10cce6207 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java @@ -113,7 +113,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { break; } } else if (t.isPrimitiveType()) { - if (t.getSignature() == "I") { + if (t.getSignature().equals("I")) { try { int value = Integer.parseInt(v); replacementValues.put(k, Integer.toString(value)); @@ -124,7 +124,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { getSourceLocation()); scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "F") { + } else if (t.getSignature().equals("F")) { try { float value = Float.parseFloat(v); replacementValues.put(k, Float.toString(value)); @@ -136,7 +136,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "Z") { + } else if (t.getSignature().equals("Z")) { if (v.equalsIgnoreCase("true") || v.equalsIgnoreCase("false")) { // is it ok ! } else { @@ -145,7 +145,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { getSourceLocation()); scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "S") { + } else if (t.getSignature().equals("S")) { try { short value = Short.parseShort(v); replacementValues.put(k, Short.toString(value)); @@ -156,7 +156,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { getSourceLocation()); scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "J") { + } else if (t.getSignature().equals("J")) { try { replacementValues.put(k, Long.toString(Long.parseLong(v))); break; @@ -166,7 +166,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { getSourceLocation()); scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "D") { + } else if (t.getSignature().equals("D")) { try { replacementValues.put(k, Double.toString(Double.parseDouble(v))); break; @@ -176,7 +176,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { getSourceLocation()); scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "B") { + } else if (t.getSignature().equals("B")) { try { replacementValues.put(k, Byte.toString(Byte.parseByte(v))); break; @@ -186,7 +186,7 @@ public class WildAnnotationTypePattern extends AnnotationTypePattern { getSourceLocation()); scope.getWorld().getMessageHandler().handleMessage(m); } - } else if (t.getSignature() == "C") { + } else if (t.getSignature().equals("C")) { if (v.length() != 3) { // '?' IMessage m = MessageUtil.error( WeaverMessages.format(WeaverMessages.INVALID_ANNOTATION_VALUE, v, "char"), -- 2.39.5