Skip to content

Commit b9abd0b

Browse files
committed
Fixing minor warnings from code analysis.
1 parent 5e82756 commit b9abd0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/org/utplsql/cli/datasource/TestedDataSourceProvider.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ private void setInitSqlFrom_NLS_LANG(InitializableOracleDataSource ds) {
8787
sqlCommands.add(String.format("ALTER SESSION SET NLS_TERRITORY='%s'", matcher.group(2)));
8888
}
8989

90-
if (sqlCommands.size() > 0) {
90+
if (!sqlCommands.isEmpty()) {
9191
StringBuilder sb = new StringBuilder();
9292
sb.append("BEGIN\n");
9393
for (String command : sqlCommands) {
9494
sb.append(String.format("EXECUTE IMMEDIATE q'[%s]';\n", command));
9595
}
9696
sb.append("END;");
9797

98-
logger.debug("NLS settings: {}", sb.toString());
98+
logger.debug("NLS settings: {}", sb);
9999
ds.setConnectionInitSql(sb.toString());
100100
}
101101
}

0 commit comments

Comments
 (0)