Skip to content

Commit

Permalink
ran javaFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-yes-0-fps committed Jan 7, 2025
1 parent d7fddd2 commit 88b1c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ default void log(String identifier, Unit value) {

/**
* Logs a measurement's value in terms of its base unit.
*
* <p> If the base unit is different from a prior call with the same
* identifier the value will be ignored.
*
* <p>If the base unit is different from a prior call with the same identifier the value will be
* ignored.
*
* @param identifier the identifier of the data field
* @param value the new value of the data field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ public <S> void log(String identifier, S[] value, Struct<S> struct) {

@Override
public <U extends Unit> void log(String identifier, Measure<U> value, U unit) {
DoublePublisher pub = (DoublePublisher)
m_publishers.computeIfAbsent(
identifier, k -> m_nt.getDoubleTopic(k).publish());
DoublePublisher pub =
(DoublePublisher)
m_publishers.computeIfAbsent(identifier, k -> m_nt.getDoubleTopic(k).publish());
pub.set(value.in(unit));
Unit cachedUnit = m_units.get(identifier);
if (cachedUnit == null || !cachedUnit.equivalent(unit)) {
Expand Down

0 comments on commit 88b1c92

Please sign in to comment.