Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-07-08 20:29:21 +0000
committerStephan Herrmann2010-07-08 20:29:21 +0000
commitd79b1bbc32add9afc769e9d388377a65984288c9 (patch)
tree863dfd1c7879ed897cbfd0e6657d3d19d6d88526 /othersrc
parent1a7c8170e5d1aa988f9e21764b18d06947b0c592 (diff)
downloadorg.eclipse.objectteams-d79b1bbc32add9afc769e9d388377a65984288c9.tar.gz
org.eclipse.objectteams-d79b1bbc32add9afc769e9d388377a65984288c9.tar.xz
org.eclipse.objectteams-d79b1bbc32add9afc769e9d388377a65984288c9.zip
document and suppress last warnings here (deprecation)
Diffstat (limited to 'othersrc')
-rw-r--r--othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseMethodTransformation.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseMethodTransformation.java b/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseMethodTransformation.java
index bee1dd45f..d6f4aba6f 100644
--- a/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseMethodTransformation.java
+++ b/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseMethodTransformation.java
@@ -204,6 +204,7 @@ public class BaseMethodTransformation
if ( !is_name.equals(method_name) // not same method
&& !is_name.equals("<init>")) // not ctor call
{
+ @SuppressWarnings("deprecation") // type of is (invokespecial) cannot be array type
String superClassName = is.getClassName(cpg);
if ( !superClassName.equals(className) // not private method of same class
&& CallinBindingManager.isBoundBaseMethod( // target method is callin-affected
@@ -457,6 +458,7 @@ public class BaseMethodTransformation
INVOKESPECIAL is = (INVOKESPECIAL)actInstruction;
String is_name = is.getName(cpg);
if(is_name.equals(method_name)) {
+ @SuppressWarnings("deprecation") // type if is (invokespecial) cannot be array type
String superClassName = is.getClassName(cpg);
if(logging) printLogMessage("super-call to " + is_name //$NON-NLS-1$
+ " has to be redirected to the orig-version!"); //$NON-NLS-1$

Back to the top