Ignore:
Timestamp:
2014-02-03T19:26:05+01:00 (12 years ago)
Author:
Don-vip
Message:

fix some Sonar issues introduced recently

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r6797 r6806  
    524524
    525525        private boolean handleNetworkErrors() {
    526             boolean condition = !networkErrors.isEmpty();
     526            boolean condition = !NETWORK_ERRORS.isEmpty();
    527527            if (condition) {
    528528                Set<String> errors = new TreeSet<String>();
    529                 for (Throwable t : networkErrors.values()) {
     529                for (Throwable t : NETWORK_ERRORS.values()) {
    530530                    errors.add(t.toString());
    531531                }
     
    537537                                "It may result of a missing proxy configuration.<br>" +
    538538                                "Would you like to change your proxy settings now?",
    539                                 Utils.joinAsHtmlUnorderedList(networkErrors.keySet()),
     539                                Utils.joinAsHtmlUnorderedList(NETWORK_ERRORS.keySet()),
    540540                                Utils.joinAsHtmlUnorderedList(errors)
    541541                        ));
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java

    r6802 r6806  
    266266            } else {
    267267                // Do not suggest to keep all values in order to reduce the wrong usage of semicolon values, see #9104!
    268                 //decision.keepAll();
    269268            }
    270269        }
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java

    r6743 r6806  
    185185        @Override
    186186        protected String createInfoUrl(Object infoObject) {
    187             HistoryOsmPrimitive primitive = (HistoryOsmPrimitive) infoObject;
    188             return primitive.getUser() == null ? null : getBaseBrowseUrl() + "/user/" + primitive.getUser().getName();
     187            HistoryOsmPrimitive hp = (HistoryOsmPrimitive) infoObject;
     188            return hp.getUser() == null ? null : getBaseBrowseUrl() + "/user/" + hp.getUser().getName();
    189189        }
    190190
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r6805 r6806  
    538538                return s == null ? null : URLEncoder.encode(s, "UTF-8");
    539539            } catch (UnsupportedEncodingException ex) {
    540                 throw new RuntimeException();
     540                throw new RuntimeException(ex);
    541541            }
    542542        }
  • trunk/src/org/openstreetmap/josm/gui/preferences/validator/ValidatorTagCheckerRulesPreference.java

    r6670 r6806  
    124124         * The unique instance.
    125125         */
    126         public final static RulePrefHelper INSTANCE = new RulePrefHelper();
     126        public static final RulePrefHelper INSTANCE = new RulePrefHelper();
    127127
    128128        /**
Note: See TracChangeset for help on using the changeset viewer.