Skip to content

Commit fe68c37

Browse files
committed
Style: suppress compile warnings
1 parent c460d30 commit fe68c37

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

traindb-catalog/src/main/java/traindb/catalog/pm/MTrainingStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import traindb.catalog.CatalogConstants;
2525

2626
@PersistenceCapable
27-
@Index(name="TRAINING_STATUS_IDX", members={"model_name", "start_time"})
27+
@Index(name = "TRAINING_STATUS_IDX", members = {"model_name", "start_time"})
2828
public final class MTrainingStatus {
2929
@PrimaryKey
3030
@Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT)

traindb-common/src/main/java/traindb/util/NetUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ private NetUtils() {
2525
}
2626

2727
/**
28-
* Util method to build socket addr from either:
29-
* <host>:<port>
30-
* <scheme>://<host>:<port>/<path>
28+
* Util method to build socket addr from either [host]:[port] or [scheme]://[host]:[port]/[path].
3129
*/
3230
public static InetSocketAddress createSocketAddr(String target) {
3331
return createSocketAddr(target, null);

traindb-core/src/main/java/traindb/adapter/TrainDBSqlDialect.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public boolean useCustomBinaryString() {
5555
}
5656

5757

58-
public SqlBinaryStringLiteral convertToBinaryString(byte[] binaryValue, SqlParserPos POS) {
59-
return SqlCharStringLiteral.createBinaryString(binaryValue, POS);
58+
public SqlBinaryStringLiteral convertToBinaryString(byte[] binaryValue, SqlParserPos pos) {
59+
return SqlCharStringLiteral.createBinaryString(binaryValue, pos);
6060
}
6161
}

traindb-core/src/main/java/traindb/engine/TrainDBFastApiModelRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private static String checkTrailingSlash(String uri) {
5757
private void addString(DataOutputStream request, String key, String value) throws Exception {
5858
StringBuilder sb = new StringBuilder();
5959
sb.append(DOUBLE_HYPHEN).append(BOUNDARY).append(CRLF);
60-
sb.append("Content-Disposition: form-data; name=\""+ key +"\"").append(CRLF);
60+
sb.append("Content-Disposition: form-data; name=\"" + key + "\"").append(CRLF);
6161
sb.append("Content-Type: plain/text").append(CRLF);
6262
sb.append(CRLF).append(value).append(CRLF);
6363
request.writeBytes(sb.toString());

traindb-core/src/main/java/traindb/engine/TrainDBFileModelRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void trainModel(TrainDBTable table, List<String> columnNames,
7171
String dataFilename = outputPath + "/data.csv";
7272
FileWriter datafileWriter = new FileWriter(dataFilename);
7373
CSVWriter csvWriter = new CSVWriter(datafileWriter, ',');
74-
ResultSetHelperService resultSetHelperService= new ResultSetHelperService();
74+
ResultSetHelperService resultSetHelperService = new ResultSetHelperService();
7575
resultSetHelperService.setDateFormat("yyyy-MM-dd");
7676
resultSetHelperService.setDateTimeFormat("yyyy-MM-dd HH:MI:SS");
7777
csvWriter.setResultService(resultSetHelperService);

traindb-core/src/main/java/traindb/engine/nio/ByteBuffers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ static ByteBuffer enlargeByteBuffer(ByteBuffer buf, int needed) {
6666
int minCapacity = buf.position() + needed;
6767
if (minCapacity > BYTEBUFFER_CAPACITY_MAX) {
6868
throw new OutOfMemoryError(
69-
"cannot enlarge ByteBuffer containing " + buf.position() + " bytes by " + needed +
70-
" more bytes");
69+
"cannot enlarge ByteBuffer containing " + buf.position() + " bytes by " + needed
70+
+ " more bytes");
7171
}
7272

7373
int newCapacity = buf.capacity() * 2;

traindb-core/src/main/java/traindb/planner/rules/ApproxAggregateInferenceRule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ public void onMatch(RelOptRuleCall call) {
130130
bestInferenceModel.getModeltype().getModeltypeName(),
131131
bestInferenceModel.getModelName(), bestInferenceModel.getModeltype().getLocation());
132132
if (runner.checkAvailable(bestInferenceModel.getModelName())) {
133-
planner.getCatalogContext().updateTrainingStatus(bestInferenceModel.getModelName(), "FINISHED");
133+
planner.getCatalogContext().updateTrainingStatus(
134+
bestInferenceModel.getModelName(), "FINISHED");
134135
break;
135136
}
136137
} catch (Exception e) {

traindb-core/src/main/java/traindb/schema/SchemaManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ public TrainDBTable getTable(String schemaName, String tableName) {
171171
}
172172
return null;
173173
}
174+
174175
/*
175176
* lockRead()/unlockRead() are used to protect rootSchema returned by
176177
* getCurrentSchema() because we don't know how long the schema will be used

0 commit comments

Comments
 (0)