diff options
-rw-r--r-- | src/main/javassist/bytecode/ClassFile.java | 24 | ||||
-rw-r--r-- | src/main/javassist/bytecode/ConstPool.java | 8 |
2 files changed, 13 insertions, 19 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index 74711369..ddcd5d8d 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -625,42 +625,38 @@ public final class ClassFile { } /** - * Get the Major version + * Get the Major version. * * @return the major version */ - public int getMajorVersion() - { + public int getMajorVersion() { return major; } /** - * Set the Major version + * Set the Major version. * - * @param major the major version + * @param major the major version */ - public void setMajorVersion(int major) - { + public void setMajorVersion(int major) { this.major = major; } /** - * Get the Minor version + * Get the Minor version. * * @return the minor version */ - public int getMinorVersion() - { + public int getMinorVersion() { return minor; } /** - * Set the Minor version + * Set the Minor version. * - * @param minor the minor version + * @param minor the minor version */ - public void setMinorVersion(int minor) - { + public void setMinorVersion(int minor) { this.minor = minor; } } diff --git a/src/main/javassist/bytecode/ConstPool.java b/src/main/javassist/bytecode/ConstPool.java index 6093145c..fba81d56 100644 --- a/src/main/javassist/bytecode/ConstPool.java +++ b/src/main/javassist/bytecode/ConstPool.java @@ -841,7 +841,7 @@ public final class ConstPool { } /** - * Get all the class names + * Get all the class names. * * @return a set of class names */ @@ -850,8 +850,7 @@ public final class ConstPool { HashSet result = new HashSet(); LongVector v = items; int size = numOfItems; - for (int i = 1; i < size; ++i) - { + for (int i = 1; i < size; ++i) { String className = ((ConstInfo) v.elementAt(i)).getClassName(this); if (className != null) result.add(className); @@ -1033,8 +1032,7 @@ class ClassInfo extends ConstInfo { public int getTag() { return tag; } - public String getClassName(ConstPool cp) - { + public String getClassName(ConstPool cp) { return cp.getUtf8Info(name); }; |