Changeset 16624 in josm


Ignore:
Timestamp:
2020-06-14T14:55:18+02:00 (8 weeks ago)
Author:
simon04
Message:

see #19334 - Use @SuppressWarnings to ignore seldom occurring error-prone warnings

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r16623 r16624  
    302302            <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
    303303            <compilerarg value="-XDignore.symbol.file"/>
    304             <compilerarg value="-Xplugin:ErrorProne -XepExcludedPaths:.*/parsergen/.* -Xep:ReferenceEquality:OFF -Xep:ImmutableEnumChecker:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:FloatingPointLiteralPrecision:OFF -Xep:ShortCircuitBoolean:OFF -Xep:StringSplitter:OFF -Xep:JdkObsolete:OFF -Xep:UnnecessaryParentheses:OFF -Xep:EqualsGetClass:OFF -Xep:ThreadPriorityCheck:OFF -Xep:UndefinedEquals:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:JavaTimeDefaultTimeZone:OFF -Xep:UnusedVariable:OFF -Xep:BadImport:OFF -Xep:AnnotateFormatMethod:OFF -Xep:MutablePublicArray:OFF"/>
     304            <compilerarg value="-Xplugin:ErrorProne -XepExcludedPaths:.*/parsergen/.* -Xep:ReferenceEquality:OFF -Xep:ImmutableEnumChecker:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:FloatingPointLiteralPrecision:OFF -Xep:ShortCircuitBoolean:OFF -Xep:StringSplitter:OFF -Xep:JdkObsolete:OFF -Xep:UnnecessaryParentheses:OFF -Xep:EqualsGetClass:OFF -Xep:UndefinedEquals:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:JavaTimeDefaultTimeZone:OFF -Xep:UnusedVariable:OFF -Xep:BadImport:OFF -Xep:AnnotateFormatMethod:OFF -Xep:MutablePublicArray:OFF"/>
    305305            <compilerarg line="-Xmaxwarns 1000"/>
    306306            <classpath>
  • trunk/src/org/openstreetmap/josm/io/audio/AudioPlayer.java

    r16623 r16624  
    268268    }
    269269
    270     @SuppressWarnings({"unchecked", "StaticAssignmentInConstructor"})
     270    @SuppressWarnings({"unchecked", "StaticAssignmentInConstructor", "ThreadPriorityCheck"})
    271271    private AudioPlayer() {
    272272        state = State.INITIALIZING;
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r16545 r16624  
    11831183     * @return a new {@link ThreadFactory}
    11841184     */
     1185    @SuppressWarnings("ThreadPriorityCheck")
    11851186    public static ThreadFactory newThreadFactory(final String nameFormat, final int threadPriority) {
    11861187        return new ThreadFactory() {
     
    12931294     * @return a {@link ForkJoinPool}
    12941295     */
     1296    @SuppressWarnings("ThreadPriorityCheck")
    12951297    public static ForkJoinPool newForkJoinPool(String pref, final String nameFormat, final int threadPriority) {
    12961298        int noThreads = Config.getPref().getInt(pref, Runtime.getRuntime().availableProcessors());
Note: See TracChangeset for help on using the changeset viewer.