Changeset 16623 in josm


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

see #19334 - https://errorprone.info/bugpattern/StaticAssignmentInConstructor

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r16622 r16623  
    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 -Xep:StaticAssignmentInConstructor: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:ThreadPriorityCheck: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/gui/MainApplication.java

    r16498 r16623  
    330330     * @since 10340
    331331     */
     332    @SuppressWarnings("StaticAssignmentInConstructor")
    332333    public MainApplication(MainFrame mainFrame) {
    333334        MainApplication.mainFrame = mainFrame;
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java

    r15963 r16623  
    8282    private transient ICoordinate iSelectionRectEnd;
    8383
     84    static {
     85        debug = Logging.isDebugEnabled();
     86    }
     87
    8488    /**
    8589     * Constructs a new {@code SlippyMapBBoxChooser}.
    8690     */
    8791    public SlippyMapBBoxChooser() {
    88         debug = Logging.isDebugEnabled();
    8992        SpringLayout springLayout = new SpringLayout();
    9093        setLayout(springLayout);
  • trunk/src/org/openstreetmap/josm/io/audio/AudioPlayer.java

    r15181 r16623  
    268268    }
    269269
    270     @SuppressWarnings("unchecked")
     270    @SuppressWarnings({"unchecked", "StaticAssignmentInConstructor"})
    271271    private AudioPlayer() {
    272272        state = State.INITIALIZING;
Note: See TracChangeset for help on using the changeset viewer.