aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src/org/aspectj/weaver
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2015-01-07 16:35:49 -0800
committerAndy Clement <aclement@gopivotal.com>2015-01-07 16:35:49 -0800
commitb45ec3291d0f7380e747c59c30262fb5b68d1743 (patch)
tree8178e4159335f7b8ff6c9b7539f320438128a1f0 /org.aspectj.matcher/src/org/aspectj/weaver
parent7569aad932296bce469e719e67a67a8d1bc8bc8b (diff)
downloadaspectj-b45ec3291d0f7380e747c59c30262fb5b68d1743.tar.gz
aspectj-b45ec3291d0f7380e747c59c30262fb5b68d1743.zip
456003: == to equals
Diffstat (limited to 'org.aspectj.matcher/src/org/aspectj/weaver')
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java16
1 files 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"),