changeset 9698:3258ec1855ef

8044866: Fix raw and unchecked lint warnings in asm Reviewed-by: darcy
author ksrini
date Fri, 20 Jun 2014 10:10:27 -0700
parents 9c096a2401fa
children 2fbac715046f
files src/share/classes/jdk/internal/org/objectweb/asm/tree/InsnList.java src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Analyzer.java src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Frame.java src/share/classes/jdk/internal/org/objectweb/asm/version.txt
diffstat 5 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/jdk/internal/org/objectweb/asm/tree/InsnList.java	Sun Jun 22 23:15:50 2014 +0100
+++ b/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/src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java	Sun Jun 22 23:15:50 2014 +0100
+++ b/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/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Analyzer.java	Sun Jun 22 23:15:50 2014 +0100
+++ b/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/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/Frame.java	Sun Jun 22 23:15:50 2014 +0100
+++ b/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/src/share/classes/jdk/internal/org/objectweb/asm/version.txt	Sun Jun 22 23:15:50 2014 +0100
+++ b/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)