Fix SAT warnings (#14202)
* Fix SAT warnings - checkstyle.ModifierOrderCheck - checkstyle.OneStatementPerLineCheck - checkstyle.NeedBracesCheck - PMD.UseStandardCharsets - PMD.UseCollectionIsEmpty - PMD.UnusedLocalVariable - PMD.SimplifyBooleanReturns where reasonable, suppress where readability is better without change - PMD.SimplifyBooleanExpressions * Include StandardCharsets Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -106,7 +106,7 @@ public class DynamoDBPersistenceService implements QueryablePersistenceService {
|
||||
private ItemRegistry itemRegistry;
|
||||
private @Nullable DynamoDbEnhancedAsyncClient client;
|
||||
private @Nullable DynamoDbAsyncClient lowLevelClient;
|
||||
private final static Logger logger = LoggerFactory.getLogger(DynamoDBPersistenceService.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(DynamoDBPersistenceService.class);
|
||||
private boolean isProperlyConfigured;
|
||||
private @Nullable DynamoDBConfig dbConfig;
|
||||
private @Nullable DynamoDBTableNameResolver tableNameResolver;
|
||||
|
||||
@@ -93,7 +93,7 @@ public class BaseIntegrationTest extends JavaTest {
|
||||
protected static final Unit<Dimensionless> DIMENSIONLESS_ITEM_UNIT = Units.ONE;
|
||||
private static @Nullable URI endpointOverride;
|
||||
|
||||
protected static UnitProvider UNIT_PROVIDER;
|
||||
protected static final UnitProvider UNIT_PROVIDER;
|
||||
static {
|
||||
ComponentContext context = Mockito.mock(ComponentContext.class);
|
||||
BundleContext bundleContext = Mockito.mock(BundleContext.class);
|
||||
@@ -192,7 +192,7 @@ public class BaseIntegrationTest extends JavaTest {
|
||||
* @param tablePrefix
|
||||
* @return new persistence service
|
||||
*/
|
||||
protected synchronized static DynamoDBPersistenceService newService(@Nullable Boolean legacy, boolean cleanLocal,
|
||||
protected static synchronized DynamoDBPersistenceService newService(@Nullable Boolean legacy, boolean cleanLocal,
|
||||
@Nullable URI overrideLocalURI, @Nullable String table, @Nullable String tablePrefix) {
|
||||
final DynamoDBPersistenceService service;
|
||||
Map<String, Object> config = getConfig(legacy, table, tablePrefix);
|
||||
|
||||
Reference in New Issue
Block a user