langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Arguments.java
changeset 29427 44f4e6905b67
parent 26264 a09fedde76be
child 29780 8f8e54a1fa20
equal deleted inserted replaced
29426:1e47176eefb9 29427:44f4e6905b67
   494         }
   494         }
   495 
   495 
   496         if (doclintOpts.equals(Collections.singleton(DocLint.XMSGS_CUSTOM_PREFIX + "none")))
   496         if (doclintOpts.equals(Collections.singleton(DocLint.XMSGS_CUSTOM_PREFIX + "none")))
   497             return List.nil();
   497             return List.nil();
   498 
   498 
       
   499         String checkPackages = options.get(Option.XDOCLINT_PACKAGE);
       
   500 
       
   501         if (checkPackages != null) {
       
   502             for (String s : checkPackages.split("\\s+")) {
       
   503                 doclintOpts.add(s.replace(Option.XDOCLINT_PACKAGE.text, DocLint.XCHECK_PACKAGE));
       
   504             }
       
   505         }
       
   506 
   499         // standard doclet normally generates H1, H2,
   507         // standard doclet normally generates H1, H2,
   500         // so for now, allow user comments to assume that
   508         // so for now, allow user comments to assume that
   501         doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2");
   509         doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2");
   502 
   510 
   503         return List.from(doclintOpts.toArray(new String[doclintOpts.size()]));
   511         return List.from(doclintOpts.toArray(new String[doclintOpts.size()]));