Avoid star imports and add missing braces (#10521)

Fixes the following SAT findings:

* AvoidStarImportCheck (125)
* NeedBracesCheck (39)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2021-04-15 16:12:05 +02:00
committed by GitHub
parent e24d43aecb
commit 0c36650179
110 changed files with 793 additions and 217 deletions

View File

@@ -34,7 +34,7 @@ import com.google.gson.JsonParseException;
* also known as the Climatix IC server account )
*
* @author Andrew Fiddian-Green - Initial contribution
*
*
*/
@NonNullByDefault
public class RdsCloudHandler extends BaseBridgeHandler {
@@ -68,8 +68,9 @@ public class RdsCloudHandler extends BaseBridgeHandler {
return;
}
if (logger.isDebugEnabled())
if (logger.isDebugEnabled()) {
logger.debug("polling interval={}", config.pollingInterval);
}
if (config.pollingInterval < FAST_POLL_INTERVAL || config.pollingInterval > LAZY_POLL_INTERVAL) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,

View File

@@ -76,8 +76,9 @@ public class PointDeserializer implements JsonDeserializer<BasePoint> {
if (valueIsPrimitive) {
JsonPrimitive primitiveType = value.getAsJsonPrimitive();
pointType = primitiveType.isString() ? PointType.STRING : PointType.NUMBER;
} else
} else {
pointType = PointType.NESTED_NUMBER;
}
}
BasePoint point;