Upgrade Units of Measurement dependencies (#10583)
* Fix code/tests for upgrade * Resolve runbundles * Update Checkstyle ruleset for changed packages Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -26,7 +26,7 @@ import java.util.Set;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.measure.Unit;
|
||||
import javax.measure.format.ParserException;
|
||||
import javax.measure.format.MeasurementParseException;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
@@ -161,7 +161,7 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
|
||||
qtc = ((QuantityType<?>) command).toUnit(unit);
|
||||
}
|
||||
}
|
||||
} catch (ParserException e) {
|
||||
} catch (MeasurementParseException e) {
|
||||
// swallow
|
||||
}
|
||||
if (qtc != null) {
|
||||
|
||||
Reference in New Issue
Block a user