Ignore:
Timestamp:
2018-09-01T15:29:15+02:00 (6 years ago)
Author:
Don-vip
Message:

sonarqube - squid:S4551 - Enum values should be compared with "=="

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r14128 r14214  
    22package org.openstreetmap.josm.data.validation.tests;
    33
     4import static org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.FixCommand.evaluateObject;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    56
     
    686687        for (Set<TagCheck> schecks : checksCol) {
    687688            for (TagCheck check : schecks) {
    688                 boolean ignoreError = Severity.OTHER.equals(check.getSeverity()) && !includeOtherSeverity;
     689                boolean ignoreError = Severity.OTHER == check.getSeverity() && !includeOtherSeverity;
    689690                // Do not run "information" level checks if not wanted, unless they also set a MapCSS class
    690691                if (ignoreError && check.setClassExpressions.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.