git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@167 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -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; | |||
} | |||
} |
@@ -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); | |||
}; | |||