Skip to content

Commit a40b870

Browse files
committed
[FLINK-38838] Update spotless style version to AOSP 1.24.0
1 parent 35df790 commit a40b870

File tree

31 files changed

+135
-50
lines changed

31 files changed

+135
-50
lines changed

flink-cdc-common/src/main/java/org/apache/flink/cdc/common/data/binary/BinaryFormat.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ public interface BinaryFormat {
3535
* to the data, and 4-bytes length of data. Data is stored in variable-length part.
3636
*/
3737
int MAX_FIX_PART_DATA_SIZE = 7;
38+
3839
/**
3940
* To get the mark in highest bit of long. Form: 10000000 00000000 ... (8 bytes)
4041
*
4142
* <p>This is used to decide whether the data is stored in fixed-length part or variable-length
4243
* part. see {@link #MAX_FIX_PART_DATA_SIZE} for more information.
4344
*/
4445
long HIGHEST_FIRST_BIT = 0x80L << 56;
46+
4547
/**
4648
* To get the 7 bits length in second bit to eighth bit out of a long. Form: 01111111 00000000
4749
* ... (8 bytes)

flink-cdc-common/src/main/java/org/apache/flink/cdc/common/text/ParsingException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public class ParsingException extends RuntimeException {
2424

2525
private final Position position;
2626

27-
/** @param position the position of the error; never null */
27+
/**
28+
* @param position the position of the error; never null
29+
*/
2830
public ParsingException(Position position) {
2931
super();
3032
this.position = position;

flink-cdc-common/src/main/java/org/apache/flink/cdc/common/text/TokenStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public String toString() {
7676
private final boolean caseSensitive;
7777
private final Tokenizer tokenizer;
7878
private List<Token> tokens;
79+
7980
/**
8081
* This class navigates the Token objects using this iterator. However, because it very often
8182
* needs to access the "current token" in the "consume(...)" and "canConsume(...)" and

flink-cdc-common/src/main/java/org/apache/flink/cdc/common/utils/Preconditions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public static void checkArgument(
129129
throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs));
130130
}
131131
}
132+
132133
// ------------------------------------------------------------------------
133134
// Boolean Condition Checking (State)
134135
// ------------------------------------------------------------------------

flink-cdc-common/src/main/java/org/apache/flink/cdc/common/utils/TypeCheckUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static boolean isMutable(DataType type) {
103103
switch (type.getTypeRoot()) {
104104
case CHAR:
105105
case VARCHAR: // The internal representation of String is BinaryString which is
106-
// mutable
106+
// mutable
107107
case ARRAY:
108108
case MAP:
109109
case ROW:

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-elasticsearch/src/main/java/org/apache/flink/cdc/connectors/elasticsearch/config/ElasticsearchSinkOptions.java

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,42 +99,58 @@ public ElasticsearchSinkOptions(
9999
this.shardingSeparator = shardingSeparator;
100100
}
101101

102-
/** @return the maximum batch size */
102+
/**
103+
* @return the maximum batch size
104+
*/
103105
public int getMaxBatchSize() {
104106
return maxBatchSize;
105107
}
106108

107-
/** @return the maximum number of in-flight requests */
109+
/**
110+
* @return the maximum number of in-flight requests
111+
*/
108112
public int getMaxInFlightRequests() {
109113
return maxInFlightRequests;
110114
}
111115

112-
/** @return the maximum number of buffered requests */
116+
/**
117+
* @return the maximum number of buffered requests
118+
*/
113119
public int getMaxBufferedRequests() {
114120
return maxBufferedRequests;
115121
}
116122

117-
/** @return the maximum batch size in bytes */
123+
/**
124+
* @return the maximum batch size in bytes
125+
*/
118126
public long getMaxBatchSizeInBytes() {
119127
return maxBatchSizeInBytes;
120128
}
121129

122-
/** @return the maximum time in buffer in milliseconds */
130+
/**
131+
* @return the maximum time in buffer in milliseconds
132+
*/
123133
public long getMaxTimeInBufferMS() {
124134
return maxTimeInBufferMS;
125135
}
126136

127-
/** @return the maximum record size in bytes */
137+
/**
138+
* @return the maximum record size in bytes
139+
*/
128140
public long getMaxRecordSizeInBytes() {
129141
return maxRecordSizeInBytes;
130142
}
131143

132-
/** @return the network configuration */
144+
/**
145+
* @return the network configuration
146+
*/
133147
public NetworkConfig getNetworkConfig() {
134148
return networkConfig;
135149
}
136150

137-
/** @return the list of Elasticsearch hosts */
151+
/**
152+
* @return the list of Elasticsearch hosts
153+
*/
138154
public List<HttpHost> getHosts() {
139155
return networkConfig.getHosts();
140156
}

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-elasticsearch/src/main/java/org/apache/flink/cdc/connectors/elasticsearch/v2/Elasticsearch8AsyncWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ public class Elasticsearch8AsyncWriter<InputT> extends AsyncSinkWriter<InputT, O
6161
private boolean close = false;
6262

6363
private final Counter numRecordsOutErrorsCounter;
64+
6465
/**
6566
* A counter to track number of records that are returned by Elasticsearch as failed and then
6667
* retried by this writer.
6768
*/
6869
private final Counter numRecordsSendPartialFailureCounter;
70+
6971
/** A counter to track the number of bulk requests that are sent to Elasticsearch. */
7072
private final Counter numRequestSubmittedCounter;
7173

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-maxcompute/src/main/java/org/apache/flink/cdc/connectors/maxcompute/coordinator/SessionManageOperator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public class SessionManageOperator extends AbstractStreamOperator<Event>
9494

9595
private transient Future<CoordinationResponse> snapshotFlushSuccess;
9696
private transient int indexOfThisSubtask;
97+
9798
/**
9899
* trigger endOfInput is ahead of prepareSnapshotPreBarrier, so we need this flag to handle when
99100
* endOfInput, send WaitForSuccessRequest in advance.

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-maxcompute/src/main/java/org/apache/flink/cdc/connectors/maxcompute/utils/SessionCommitCoordinateHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public class SessionCommitCoordinateHelper {
6969
private static final Logger LOG = LoggerFactory.getLogger(SessionCommitCoordinateHelper.class);
7070
private final Queue<String>[] toCommitSessionIds;
7171
private final Map<String, CompletableFuture<CoordinationResponse>> toCommitFutures;
72+
7273
/**
7374
* If any string is {@link Constant#END_OF_SESSION}, it should be considered larger than any
7475
* other non-{@link Constant#END_OF_SESSION} string.

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-oceanbase/src/main/java/org/apache/flink/cdc/connectors/oceanbase/catalog/OceanBaseCatalogException.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@
1919

2020
/** A catalog-related, runtime exception. */
2121
public class OceanBaseCatalogException extends RuntimeException {
22-
/** @param message the detail message. */
22+
/**
23+
* @param message the detail message.
24+
*/
2325
public OceanBaseCatalogException(String message) {
2426
super(message);
2527
}
2628

27-
/** @param cause the cause. */
29+
/**
30+
* @param cause the cause.
31+
*/
2832
public OceanBaseCatalogException(Throwable cause) {
2933
super(cause);
3034
}

0 commit comments

Comments
 (0)