Ignore:
Timestamp:
2014-04-19T00:36:43+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - place Strings literals on the left side when checking for equality (can avoid NPEs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r6968 r6990  
    765765    public void setAttribution(AbstractTileSource s) {
    766766        if (attributionText != null) {
    767             if (attributionText.equals("osm")) {
     767            if ("osm".equals(attributionText)) {
    768768                s.setAttributionText(new Mapnik().getAttributionText(0, null, null));
    769769            } else {
     
    772772        }
    773773        if (attributionLinkURL != null) {
    774             if (attributionLinkURL.equals("osm")) {
     774            if ("osm".equals(attributionLinkURL)) {
    775775                s.setAttributionLinkURL(new Mapnik().getAttributionLinkURL());
    776776            } else {
     
    791791        }
    792792        if (termsOfUseURL != null) {
    793             if (termsOfUseURL.equals("osm")) {
     793            if ("osm".equals(termsOfUseURL)) {
    794794                s.setTermsOfUseURL(new Mapnik().getTermsOfUseURL());
    795795            } else {
Note: See TracChangeset for help on using the changeset viewer.