changeset 3153:f51d2e966e3c

Remove a check that's no longer necessary and not present in jdk9/dev.
author wmdietl
date Wed, 15 Jan 2014 13:37:29 -0500
parents 16cf4849ecef
children 888891807c48
files src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java	Wed Jan 15 13:36:51 2014 -0500
+++ b/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java	Wed Jan 15 13:37:29 2014 -0500
@@ -349,21 +349,16 @@
                     List<VarSymbol> params = ((MethodSymbol)sym.owner).params;
                     List<Type> oldArgs = methType.argtypes;
                     ListBuffer<Type> newArgs = new ListBuffer<>();
-                    boolean found = false;
                     while (params.nonEmpty()) {
                         if (params.head == sym) {
                             newArgs.add(type);
-                            found = true;
                         } else {
                             newArgs.add(oldArgs.head);
                         }
                         oldArgs = oldArgs.tail;
                         params = params.tail;
                     }
-                    if (found) {
-                        methType.argtypes = newArgs.toList();
-                    }
-                    // Should we raise an error if !found?
+                    methType.argtypes = newArgs.toList();
                 }
             } else {
                 sym.type = type;