Skip to content

Commit

Permalink
fix another valid PMD complain
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19299 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Jan 28, 2025
1 parent 8e6f56d commit 5139b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/openstreetmap/josm/data/SystemOfMeasurement.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public static SystemOfMeasurement getDefault() {
.map(LanguageInfo::getLocale)
.orElse(Locale.getDefault())
.getCountry();
if (country == "US")
if ("US".equals(country))
// https://en.wikipedia.org/wiki/Metrication_in_the_United_States#Current_use
// Imperial units still used in transportation and Earth sciences
return IMPERIAL;
Expand Down

0 comments on commit 5139b5e

Please sign in to comment.