svn commit: r224668 - /jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/Attribute.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Author: dbrosius
Date: Sun Jul 24 16:13:02 2005
New Revision: 224668

URL: http://svn.apache.org/viewcvs?rev=224668&view=rev
Log:
minor cleanups

Modified:
    jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/Attribute.java

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/Attribute.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/Attribute.java?rev=224668&r1=224667&r2=224668&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/Attribute.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/Attribute.java Sun Jul 24 16:13:02 2005
@@ -125,7 +125,7 @@
     byte         tag = Constants.ATTR_UNKNOWN; // Unknown attribute
 
     // Get class name from constant pool via `name_index' indirection
-    name_index = (int)file.readUnsignedShort();
+    name_index = file.readUnsignedShort();
     c          = (ConstantUtf8)constant_pool.getConstant(name_index, 
 							 Constants.CONSTANT_Utf8);
     name       = c.getBytes();
@@ -147,9 +147,8 @@
       AttributeReader r = (AttributeReader)readers.get(name);
 
       if(r != null)
-	return r.createAttribute(name_index, length, file, constant_pool);
-      else
-	return new Unknown(name_index, length, file, constant_pool);
+    	  return r.createAttribute(name_index, length, file, constant_pool);
+	  return new Unknown(name_index, length, file, constant_pool);
 
     case Constants.ATTR_CONSTANT_VALUE:
       return new ConstantValue(name_index, length, file, constant_pool);
@@ -213,7 +212,7 @@
   public final int   getLength()    { return length; }    
 
   /**
-   * @param Attribute length in bytes.
+   * @param length length in bytes.
    */
   public final void setLength(int length) {
     this.length = length;
@@ -272,7 +271,7 @@
   /**
    * @return deep copy of this attribute
    */
-  public abstract Attribute copy(ConstantPool constant_pool);
+  public abstract Attribute copy(ConstantPool _constant_pool);
 
   /**
    * @return attribute name.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.