Commit 7862594f authored by pcregut's avatar pcregut

Do not add this for pure interfaces.

parent f6288a1b
...@@ -276,8 +276,9 @@ public class Method implements Comparable<Method>, IAnnotationsHolder { ...@@ -276,8 +276,9 @@ public class Method implements Comparable<Method>, IAnnotationsHolder {
* @return true if the Method uses the "this" parameter. * @return true if the Method uses the "this" parameter.
*/ */
public boolean isUsingThis() { public boolean isUsingThis() {
// "This" is used if the Method is not static, and is not a Constructor. // "This" is used if the Method is not static, and is not a Constructor and not abstract.
return (!isStatic()) && ((access & Opcodes.ACC_CONSTRUCTOR) == 0); // Patch for "not abstract" by Panxiaobo #316341 - patch 16.
return (!isStatic()) && ((access & Opcodes.ACC_CONSTRUCTOR) == 0) && supportsCodeItem();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment