Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-07-08 20:24:09 +0000
committerStephan Herrmann2010-07-08 20:24:09 +0000
commit94e8597e103a7945d78da19d39110ac33d6fffdd (patch)
treeaa1967042120f439719554cb3c66ec2942db82fc /othersrc
parentad374a29b3c3aef284edff7c9eb014ecea155cbb (diff)
downloadorg.eclipse.objectteams-94e8597e103a7945d78da19d39110ac33d6fffdd.tar.gz
org.eclipse.objectteams-94e8597e103a7945d78da19d39110ac33d6fffdd.tar.xz
org.eclipse.objectteams-94e8597e103a7945d78da19d39110ac33d6fffdd.zip
document and suppress last warnings here (deprecation)
Diffstat (limited to 'othersrc')
-rw-r--r--othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseCallRedirection.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseCallRedirection.java b/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseCallRedirection.java
index 5ac779604..9766c82bd 100644
--- a/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseCallRedirection.java
+++ b/othersrc/OTRE/src/org/eclipse/objectteams/otre/BaseCallRedirection.java
@@ -1279,6 +1279,7 @@ public class BaseCallRedirection extends ObjectTeamsTransformation {
* @param loading the originally loaded arguments
* @return the instruction list containing the method call ingredients
*/
+ @SuppressWarnings("deprecation") // ii.getClassName() is deprecated
InstructionList genEnhancedSuperCall(ConstantPoolGen cpg, InvokeInstruction ii,
MethodGen enhancedMethod, InstructionList loading)
{
@@ -1304,7 +1305,7 @@ public class BaseCallRedirection extends ObjectTeamsTransformation {
else
kind = Constants.INVOKEVIRTUAL;
- il.append(factory.createInvoke(ii.getClassName(cpg),
+ il.append(factory.createInvoke(ii.getClassName(cpg), // deprecated but we're safe because we have not array here (super/tsuper call)
ii.getMethodName(cpg),
returnType,
argTypes,
@@ -1320,6 +1321,7 @@ public class BaseCallRedirection extends ObjectTeamsTransformation {
* @param loading the originally loaded arguments
* @return the instruction list containing the method call ingredients
*/
+ @SuppressWarnings("deprecation") // iv.getClassName is deprecated
InstructionList genBaseCallSurrogateCall(ConstantPoolGen cpg, InvokeInstruction/*INVOKEVIRTUAL*/ iv,
MethodGen enhancedMethod, InstructionList loading,
String roleClassName, String calleeClassName) //JU: added String roleClassName and teamClassName to the method signature
@@ -1328,7 +1330,7 @@ public class BaseCallRedirection extends ObjectTeamsTransformation {
// because of the missing 'this'
// for static methods callee is 'null' -> substitute by current class (JU)
if(calleeClassName == null) {
- calleeClassName = iv.getClassName(cpg);
+ calleeClassName = iv.getClassName(cpg); // deprecated but we're safe because we have not array here (activate() call)
}
Type returnType = enhancedMethod.getReturnType();

Back to the top