equal
deleted
inserted
replaced
576 |
576 |
577 boolean lintOptions = options.isUnset(Option.XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option); |
577 boolean lintOptions = options.isUnset(Option.XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option); |
578 if (lintOptions && source.compareTo(Source.DEFAULT) < 0 && !options.isSet(Option.RELEASE)) { |
578 if (lintOptions && source.compareTo(Source.DEFAULT) < 0 && !options.isSet(Option.RELEASE)) { |
579 if (fm instanceof BaseFileManager) { |
579 if (fm instanceof BaseFileManager) { |
580 if (((BaseFileManager) fm).isDefaultBootClassPath()) |
580 if (((BaseFileManager) fm).isDefaultBootClassPath()) |
581 log.warning(LintCategory.OPTIONS, "source.no.bootclasspath", source.name); |
581 log.warning(LintCategory.OPTIONS, Warnings.SourceNoBootclasspath(source.name)); |
582 } |
582 } |
583 } |
583 } |
584 |
584 |
585 boolean obsoleteOptionFound = false; |
585 boolean obsoleteOptionFound = false; |
586 |
586 |
626 fm.hasLocation(StandardLocation.ANNOTATION_PROCESSOR_PATH)) { |
626 fm.hasLocation(StandardLocation.ANNOTATION_PROCESSOR_PATH)) { |
627 log.error(Errors.ProcessorpathNoProcessormodulepath); |
627 log.error(Errors.ProcessorpathNoProcessormodulepath); |
628 } |
628 } |
629 |
629 |
630 if (obsoleteOptionFound && lintOptions) { |
630 if (obsoleteOptionFound && lintOptions) { |
631 log.warning(LintCategory.OPTIONS, "option.obsolete.suppression"); |
631 log.warning(LintCategory.OPTIONS, Warnings.OptionObsoleteSuppression); |
632 } |
632 } |
633 |
633 |
634 SourceVersion sv = Source.toSourceVersion(source); |
634 SourceVersion sv = Source.toSourceVersion(source); |
635 validateAddExports(sv); |
635 validateAddExports(sv); |
636 validateAddModules(sv); |
636 validateAddModules(sv); |