修复JDK15下StringBuilder.isEmpty方法
This commit is contained in:
@@ -2351,7 +2351,7 @@ public final class Application {
|
||||
clusterRemovedKeys.forEach(k -> {
|
||||
sb.append(ClusterAgent.class.getSimpleName()).append(" skip change '").append(k).append("'\r\n");
|
||||
});
|
||||
if (!sb.isEmpty()) {
|
||||
if (sb.length() > 0) {
|
||||
logger.log(Level.INFO, sb.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public class CacheClusterAgent extends ClusterAgent implements Resourcable {
|
||||
this.ttls = newTtls;
|
||||
start();
|
||||
}
|
||||
if (!sb.isEmpty()) {
|
||||
if (sb.length() > 0) {
|
||||
logger.log(Level.INFO, sb.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2218,7 +2218,7 @@ public class DataJdbcSource extends DataSqlSource {
|
||||
} else {
|
||||
int b = 0;
|
||||
for (String table : tables) {
|
||||
if (!union.isEmpty()) {
|
||||
if (union.length() > 0) {
|
||||
union.append(" UNION ALL ");
|
||||
}
|
||||
union.append("SELECT ").append(info.getQueryColumns("a", selects)).append(" FROM ").append(table).append(" a").append(joinAndWhere);
|
||||
|
||||
@@ -210,7 +210,7 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
|
||||
}
|
||||
}
|
||||
afterResourceChange();
|
||||
if (!sb.isEmpty()) {
|
||||
if (sb.length() > 0) {
|
||||
logger.log(Level.INFO, sb.toString());
|
||||
}
|
||||
}
|
||||
@@ -2345,7 +2345,7 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
|
||||
int b = 0;
|
||||
StringBuilder union = new StringBuilder();
|
||||
for (String table : tables) {
|
||||
if (!union.isEmpty()) {
|
||||
if (union.length() > 0) {
|
||||
union.append(" UNION ALL ");
|
||||
}
|
||||
union.append("SELECT a.").append(keySqlColumn).append(", ").append(funcSqlColumn)
|
||||
@@ -2465,7 +2465,7 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
|
||||
} else {
|
||||
StringBuilder union = new StringBuilder();
|
||||
for (String table : tables) {
|
||||
if (!union.isEmpty()) {
|
||||
if (union.length() > 0) {
|
||||
union.append(" UNION ALL ");
|
||||
}
|
||||
String subsql = "SELECT ";
|
||||
@@ -2663,7 +2663,7 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
|
||||
} else {
|
||||
StringBuilder union = new StringBuilder();
|
||||
for (String table : tables) {
|
||||
if (!union.isEmpty()) {
|
||||
if (union.length() > 0) {
|
||||
union.append(" UNION ALL ");
|
||||
}
|
||||
union.append("SELECT ").append(info.getQueryColumns("a", selects)).append(" FROM ").append(table).append(" a").append(joinAndWhere);
|
||||
@@ -2785,7 +2785,7 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
|
||||
} else {
|
||||
StringBuilder union = new StringBuilder();
|
||||
for (String table : tables) {
|
||||
if (!union.isEmpty()) {
|
||||
if (union.length() > 0) {
|
||||
union.append(" UNION ALL ");
|
||||
}
|
||||
union.append("SELECT ").append(info.getSQLColumn("a", column)).append(" FROM ").append(table).append(" a").append(joinAndWhere);
|
||||
@@ -2913,7 +2913,7 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
|
||||
} else {
|
||||
StringBuilder union = new StringBuilder();
|
||||
for (String table : tables) {
|
||||
if (!union.isEmpty()) {
|
||||
if (union.length() > 0) {
|
||||
union.append(" UNION ALL ");
|
||||
}
|
||||
union.append("SELECT ").append(info.getPrimarySQLColumn("a")).append(" FROM ").append(table).append(" a").append(joinAndWhere);
|
||||
|
||||
Reference in New Issue
Block a user