Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-yes-0-fps committed Jan 7, 2025
1 parent b5cd08c commit 672e2b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public static <U extends Unit> boolean putMeasure(String key, Measure<U> value,
return false;
}
String publishedUnitSymbol = entry.getTopic().getProperty("unit");
if (publishedUnitSymbol.equals("null")) {
if ("null".equals(publishedUnitSymbol)) {
entry.getTopic().setProperty("unit", unit.symbol());
} else if (!publishedUnitSymbol.equals(unit.symbol())) {
return false;
Expand Down Expand Up @@ -551,7 +551,7 @@ public static <U extends Unit> Measure<U> getMeasure(String key, Measure<U> defa
return defaultValue;
}
String publishedUnitSymbol = entry.getTopic().getProperty("unit");
if (publishedUnitSymbol.equals("null")) {
if ("null".equals(publishedUnitSymbol)) {
return defaultValue;
}
U unit = defaultValue.baseUnit();
Expand Down

0 comments on commit 672e2b8

Please sign in to comment.