Skip to content

Commit 5139b5e

Browse files
author
stoecker
committed
fix another valid PMD complain
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19299 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent 8e6f56d commit 5139b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/openstreetmap/josm/data/SystemOfMeasurement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public static SystemOfMeasurement getDefault() {
304304
.map(LanguageInfo::getLocale)
305305
.orElse(Locale.getDefault())
306306
.getCountry();
307-
if (country == "US")
307+
if ("US".equals(country))
308308
// https://en.wikipedia.org/wiki/Metrication_in_the_United_States#Current_use
309309
// Imperial units still used in transportation and Earth sciences
310310
return IMPERIAL;

0 commit comments

Comments
 (0)