diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-04-10 02:18:29 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-04-10 02:18:29 +0000 |
commit | a3705668278d2faaeb297f9da81c20354a0599d6 (patch) | |
tree | cccd77460a72c120395ccd92790f2f964b62557d | |
parent | 82d3da5daa398dce4bd0abce4ebc11a627d2f14b (diff) | |
download | javassist-a3705668278d2faaeb297f9da81c20354a0599d6.tar.gz javassist-a3705668278d2faaeb297f9da81c20354a0599d6.zip |
checked the previous modifications and adjusted the format.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@167 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-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); }; |