src/jdk.compiler/share/classes/com/sun/tools/doclint/Checker.java
changeset 52871 c09bff7928e8
parent 52664 15fc92f4ae9a
child 54135 67f72165dca5
--- a/src/jdk.compiler/share/classes/com/sun/tools/doclint/Checker.java	Thu Dec 06 10:07:54 2018 +0100
+++ b/src/jdk.compiler/share/classes/com/sun/tools/doclint/Checker.java	Thu Dec 06 12:34:28 2018 +0100
@@ -884,8 +884,6 @@
         String sig = tree.getSignature();
         if (sig.contains("<") || sig.contains(">")) {
             env.messages.error(REFERENCE, tree, "dc.type.arg.not.allowed");
-        } else if (isArrayType(sig)) {
-            env.messages.error(REFERENCE, tree, "dc.array.type.not.allowed");
         } else {
             Element e = env.trees.getElement(getCurrentPath());
             if (e == null)
@@ -975,12 +973,6 @@
         return scan(tree.getDescription(), ignore);
     }
 
-    private boolean isArrayType(String signature) {
-        int brackets = signature.indexOf('[');
-        int parens = signature.indexOf('(');
-        return brackets >= 0 && (parens < 0 || brackets < parens);
-    }
-
     private boolean isThrowable(TypeMirror tm) {
         switch (tm.getKind()) {
             case DECLARED: