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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user