commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1702134 - in /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6: classfile/ verifier/structurals/
Date Thu, 10 Sep 2015 00:15:39 GMT
Author: ggregory
Date: Thu Sep 10 00:15:38 2015
New Revision: 1702134

URL: http://svn.apache.org/r1702134
Log:
Remove unneeded casts.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/EnclosingMethod.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/PMGClass.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ParameterAnnotations.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeInvisibleAnnotations.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeVisibleAnnotations.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Signature.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/SourceFile.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/StackMapType.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/LocalVariables.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
Thu Sep 10 00:15:38 2015
@@ -83,7 +83,7 @@ public class AnnotationDefault extends A
 
     @Override
     public Attribute copy(ConstantPool _constant_pool) {
-        return (AnnotationDefault) clone();
+        return clone();
     }
 
     @Override

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/EnclosingMethod.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/EnclosingMethod.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/EnclosingMethod.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/EnclosingMethod.java
Thu Sep 10 00:15:38 2015
@@ -62,7 +62,7 @@ public class EnclosingMethod extends Att
 
     @Override
     public Attribute copy(ConstantPool constant_pool) {
-        return (EnclosingMethod) clone();
+        return clone();
     }
 
     // Accessors

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/PMGClass.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/PMGClass.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/PMGClass.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/PMGClass.java
Thu Sep 10 00:15:38 2015
@@ -168,6 +168,6 @@ public final class PMGClass extends Attr
      */
     @Override
     public Attribute copy( ConstantPool _constant_pool ) {
-        return (Attribute) clone();
+        return clone();
     }
 }

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ParameterAnnotations.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ParameterAnnotations.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ParameterAnnotations.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ParameterAnnotations.java
Thu Sep 10 00:15:38 2015
@@ -118,6 +118,6 @@ public abstract class ParameterAnnotatio
      */
     @Override
     public Attribute copy( ConstantPool constant_pool ) {
-        return (ParameterAnnotations) clone();
+        return clone();
     }
 }

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeInvisibleAnnotations.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeInvisibleAnnotations.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeInvisibleAnnotations.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeInvisibleAnnotations.java
Thu Sep 10 00:15:38 2015
@@ -54,7 +54,7 @@ public class RuntimeInvisibleAnnotations
     @Override
     public Attribute copy(ConstantPool constant_pool)
     {
-        return (Annotations) clone();
+        return clone();
     }
 
     @Override

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeVisibleAnnotations.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeVisibleAnnotations.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeVisibleAnnotations.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/RuntimeVisibleAnnotations.java
Thu Sep 10 00:15:38 2015
@@ -53,7 +53,7 @@ public class RuntimeVisibleAnnotations e
     @Override
     public Attribute copy(ConstantPool constant_pool)
     {
-        return (Annotations) clone();
+        return clone();
     }
 
     @Override

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Signature.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Signature.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Signature.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Signature.java
Thu Sep 10 00:15:38 2015
@@ -265,6 +265,6 @@ public final class Signature extends Att
      */
     @Override
     public Attribute copy( ConstantPool _constant_pool ) {
-        return (Attribute) clone();
+        return clone();
     }
 }

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/SourceFile.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/SourceFile.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/SourceFile.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/SourceFile.java
Thu Sep 10 00:15:38 2015
@@ -145,6 +145,6 @@ public final class SourceFile extends At
      */
     @Override
     public Attribute copy( ConstantPool _constant_pool ) {
-        return (Attribute) clone();
+        return clone();
     }
 }

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/StackMapType.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/StackMapType.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/StackMapType.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/StackMapType.java
Thu Sep 10 00:15:38 2015
@@ -47,7 +47,7 @@ public final class StackMapType implemen
     StackMapType(DataInput file, ConstantPool constant_pool) throws IOException {
         this(file.readByte(), -1, constant_pool);
         if (hasIndex()) {
-            this.index = (int) file.readShort();
+            this.index = file.readShort();
         }
         this.constant_pool = constant_pool;
     }

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/LocalVariables.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/LocalVariables.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/LocalVariables.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/LocalVariables.java
Thu Sep 10 00:15:38 2015
@@ -69,7 +69,7 @@ public class LocalVariables implements C
      * This is equivalent to ((LocalVariables) this.clone()).
      */
     public LocalVariables getClone(){
-        return (LocalVariables) this.clone();
+        return this.clone();
     }
 
     /**

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java?rev=1702134&r1=1702133&r2=1702134&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java
Thu Sep 10 00:15:38 2015
@@ -106,7 +106,7 @@ public class OperandStack implements Clo
      * @see #clone()
      */
     public OperandStack getClone(){
-        return (OperandStack) this.clone();
+        return this.clone();
     }
 
     /**



Mime
View raw message