diff options
author | Narayan Kamath <narayan@google.com> | 2013-11-26 18:01:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-11-26 18:01:36 +0000 |
commit | b005651c72190ee37f463417143cd2e612cafce6 (patch) | |
tree | 7d42e31a97264803b1147ef6001e8a5e6968a122 /src/proguard/classfile/ProgramMember.java | |
parent | 54f59ac04f3e21d5aecdd46bb1e7f4577924ab92 (diff) | |
parent | 8a6199f0c36a778f22394364347a301b0b28e94b (diff) | |
download | external_proguard-b005651c72190ee37f463417143cd2e612cafce6.tar.gz external_proguard-b005651c72190ee37f463417143cd2e612cafce6.tar.bz2 external_proguard-b005651c72190ee37f463417143cd2e612cafce6.zip |
Merge "Upgrade Proguard to 4.10."
Diffstat (limited to 'src/proguard/classfile/ProgramMember.java')
-rw-r--r-- | src/proguard/classfile/ProgramMember.java | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/src/proguard/classfile/ProgramMember.java b/src/proguard/classfile/ProgramMember.java index ea6f46d..240d344 100644 --- a/src/proguard/classfile/ProgramMember.java +++ b/src/proguard/classfile/ProgramMember.java @@ -2,7 +2,7 @@ * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * - * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu) + * Copyright (c) 2002-2013 Eric Lafortune (eric@graphics.cornell.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -53,7 +53,7 @@ public abstract class ProgramMember implements Member /** - * Creates an initialized ProgramMember. + * Creates an initialized ProgramMember. */ protected ProgramMember(int u2accessFlags, int u2nameIndex, @@ -70,34 +70,6 @@ public abstract class ProgramMember implements Member /** - * Returns the line number range of the given class member as "m:n", - * if it can find it, or <code>null</code> otherwise. - */ - public String getLineNumberRange(Clazz clazz) - { - CodeAttribute codeAttribute = - (CodeAttribute)getAttribute(clazz, ClassConstants.ATTR_Code); - if (codeAttribute == null) - { - return null; - } - - LineNumberTableAttribute lineNumberTableAttribute = - (LineNumberTableAttribute)codeAttribute.getAttribute(clazz, - ClassConstants.ATTR_LineNumberTable); - if (lineNumberTableAttribute == null) - { - return null; - } - - return "" + - lineNumberTableAttribute.getLineNumber(0) + - ":" + - lineNumberTableAttribute.getLineNumber(Integer.MAX_VALUE); - } - - - /** * Returns the (first) attribute with the given name. */ private Attribute getAttribute(Clazz clazz, String name) |