]> source.dussan.org Git - aspectj.git/commitdiff
456003: == to equals
authorAndy Clement <aclement@gopivotal.com>
Thu, 8 Jan 2015 00:35:49 +0000 (16:35 -0800)
committerAndy Clement <aclement@gopivotal.com>
Thu, 8 Jan 2015 00:35:49 +0000 (16:35 -0800)
org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildAnnotationTypePattern.java

index 984b4ee4c5db948f67ef62365c4cbf6b91371b08..10cce6207affd68d06b49ec3035a5c21f48297c1 100644 (file)
@@ -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"),