Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2010-11-15 17:06:24 -0500
committerkmoore2010-11-15 17:06:24 -0500
commit5f9614f99db17530cf4ea1b90e4fb0b53a51a087 (patch)
treee9559f61c4796c0e8637ec1166321218203b48a2
parent06734e248cb19baf0ea0dba200b9dfe3a407b4b1 (diff)
downloadwebtools.dali-5f9614f99db17530cf4ea1b90e4fb0b53a51a087.tar.gz
webtools.dali-5f9614f99db17530cf4ea1b90e4fb0b53a51a087.tar.xz
webtools.dali-5f9614f99db17530cf4ea1b90e4fb0b53a51a087.zip
removed redundant downcast method
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/utility/jdt/StringArrayExpressionConverter.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/utility/jdt/StringArrayExpressionConverter.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/utility/jdt/StringArrayExpressionConverter.java
index 35751f6e52..24215a98c6 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/utility/jdt/StringArrayExpressionConverter.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/utility/jdt/StringArrayExpressionConverter.java
@@ -94,7 +94,7 @@ public class StringArrayExpressionConverter
* AnnotationStringArrayExpressionConverter
*/
public String[] convertArrayInitializer(ArrayInitializer arrayInitializer) {
- List<Expression> expressions = this.downcastExpressions(arrayInitializer);
+ List<Expression> expressions = this.expressions(arrayInitializer);
int len = expressions.size();
String[] strings = new String[len];
for (int i = len; i-- > 0; ) {
@@ -103,9 +103,4 @@ public class StringArrayExpressionConverter
return strings;
}
- @SuppressWarnings("unchecked")
- private List<Expression> downcastExpressions(ArrayInitializer arrayInitializer) {
- return arrayInitializer.expressions();
- }
-
}

Back to the top