8055054: Remove visitWildcard visitor method from erasure visitor
authoremc
Wed, 13 Aug 2014 14:25:46 -0400
changeset 26099 c425126bfadf
parent 26098 32588700060b
child 26100 bb7dd001d190
child 26101 d5dd2ecd2353
8055054: Remove visitWildcard visitor method from erasure visitor Summary: Remove suspicious visitor method that should not be present Reviewed-by: mcimadamore
langtools/src/share/classes/com/sun/tools/javac/code/Types.java
--- a/langtools/src/share/classes/com/sun/tools/javac/code/Types.java	Wed Aug 13 14:44:59 2014 +0200
+++ b/langtools/src/share/classes/com/sun/tools/javac/code/Types.java	Wed Aug 13 14:25:46 2014 -0400
@@ -2196,16 +2196,6 @@
             }
 
             @Override
-            public Type visitWildcardType(WildcardType t, Boolean recurse) {
-                final List<Attribute.TypeCompound> annos = t.getAnnotationMirrors();
-                Type erased = erasure(wildUpperBound(t), recurse);
-                if (!annos.isEmpty()) {
-                    erased = erased.annotatedType(annos);
-                }
-                return erased;
-            }
-
-            @Override
             public Type visitClassType(ClassType t, Boolean recurse) {
                 Type erased = t.tsym.erasure(Types.this);
                 List<Attribute.TypeCompound> annos = t.getAnnotationMirrors();