8044866: Fix raw and unchecked lint warnings in asm
authorksrini
Fri, 20 Jun 2014 10:10:27 -0700
changeset 25153 ee08c525ac5b
parent 25152 4459bf7dab0b
child 25154 a4252397d312
child 25392 0eabdbb887aa
8044866: Fix raw and unchecked lint warnings in asm Reviewed-by: darcy
jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/InsnList.java
jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java
jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Analyzer.java
jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Frame.java
jdk/src/share/classes/jdk/internal/org/objectweb/asm/version.txt
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/InsnList.java	Fri Jun 20 19:03:57 2014 +0400
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/InsnList.java	Fri Jun 20 10:10:27 2014 -0700
@@ -550,6 +550,7 @@
     }
 
     // this class is not generified because it will create bridges
+    @SuppressWarnings("rawtypes")
     private final class InsnListIterator implements ListIterator {
 
         AbstractInsnNode next;
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java	Fri Jun 20 19:03:57 2014 +0400
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java	Fri Jun 20 10:10:27 2014 -0700
@@ -399,6 +399,7 @@
     }
 
     @Override
+    @SuppressWarnings("unchecked")
     public AnnotationVisitor visitParameterAnnotation(final int parameter,
             final String desc, final boolean visible) {
         AnnotationNode an = new AnnotationNode(desc);
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Analyzer.java	Fri Jun 20 19:03:57 2014 +0400
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Analyzer.java	Fri Jun 20 10:10:27 2014 -0700
@@ -131,6 +131,7 @@
      * @throws AnalyzerException
      *             if a problem occurs during the analysis.
      */
+    @SuppressWarnings("unchecked")
     public Frame<V>[] analyze(final String owner, final MethodNode m)
             throws AnalyzerException {
         if ((m.access & (ACC_ABSTRACT | ACC_NATIVE)) != 0) {
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Frame.java	Fri Jun 20 19:03:57 2014 +0400
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Frame.java	Fri Jun 20 10:10:27 2014 -0700
@@ -112,6 +112,7 @@
      * @param nStack
      *            the maximum stack size of the frame.
      */
+    @SuppressWarnings("unchecked")
     public Frame(final int nLocals, final int nStack) {
         this.values = (V[]) new Value[nLocals + nStack];
         this.locals = nLocals;
--- a/jdk/src/share/classes/jdk/internal/org/objectweb/asm/version.txt	Fri Jun 20 19:03:57 2014 +0400
+++ b/jdk/src/share/classes/jdk/internal/org/objectweb/asm/version.txt	Fri Jun 20 10:10:27 2014 -0700
@@ -1,12 +1,12 @@
 Path: .
-Working Copy Root Path: /hudson/jobs/objectweb-pull/workspace/asm-svn-2014-05-27
+Working Copy Root Path: /hudson/jobs/objectweb-pull/workspace/asm-svn-2014-06-19
 URL: file:///svnroot/asm/trunk/asm
 Repository Root: file:///svnroot/asm
 Repository UUID: 271bd773-ee82-43a6-9b2b-1890ed8ce7f9
-Revision: 1748
+Revision: 1750
 Node Kind: directory
 Schedule: normal
-Last Changed Author: ebruneton
-Last Changed Rev: 1747
-Last Changed Date: 2014-05-24 10:22:13 +0200 (Sat, 24 May 2014)
+Last Changed Author: forax
+Last Changed Rev: 1750
+Last Changed Date: 2014-06-06 00:31:02 +0200 (Fri, 06 Jun 2014)