Skip to content

Commit 77da73f

Browse files
committed
Re-enable Checkstyle, fix errors, add suppressions
1 parent 1ed7b73 commit 77da73f

File tree

109 files changed

+6072
-6398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+6072
-6398
lines changed

config/checkstyle/google_checks.xml

-207
This file was deleted.

config/checkstyle/suppressions.xml

+7
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@
2424
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
2525

2626
<suppressions>
27+
<suppress checks="MissingJavadocType" files=".*" />
28+
<suppress checks="MissingJavadocMethod" files=".*" />
29+
<suppress checks="SummaryJavadoc" files="." />
30+
<suppress checks="JavadocTagContinuationIndentation" files=".*" />
31+
<suppress checks="NonEmptyAtclauseDescription" files=".*" />
32+
33+
<suppress checks="LineLength" files=".*" />
2734
</suppressions>

kcbq-api/src/main/java/com/wepay/kafka/connect/bigquery/api/KafkaSchemaRecordType.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
2121

2222

2323
/**
24-
* Enum class for Kafka schema or record type, either value or key.
24+
* Enum class for Kafka schema or record type, either value or key.
2525
*/
2626
public enum KafkaSchemaRecordType {
2727

28-
VALUE("value"),
29-
KEY("key");
28+
VALUE("value"),
29+
KEY("key");
3030

31-
private final String str;
31+
private final String str;
3232

33-
KafkaSchemaRecordType(String str) {
34-
this.str = str;
35-
}
33+
KafkaSchemaRecordType(String str) {
34+
this.str = str;
35+
}
3636

37-
public String toString() {
38-
return this.str;
39-
}
37+
public String toString() {
38+
return this.str;
39+
}
4040
}

kcbq-api/src/main/java/com/wepay/kafka/connect/bigquery/api/SchemaRetriever.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919

2020
package com.wepay.kafka.connect.bigquery.api;
2121

22+
import java.util.Map;
2223
import org.apache.kafka.connect.data.Schema;
2324
import org.apache.kafka.connect.sink.SinkRecord;
2425

25-
import java.util.Map;
26-
2726
/**
2827
* Interface for retrieving the most up-to-date schemas for a given Sink Record. Used in
2928
* automatic table creation and schema updates.
@@ -32,19 +31,22 @@ public interface SchemaRetriever {
3231
/**
3332
* Called with all of the configuration settings passed to the connector via its
3433
* {@link org.apache.kafka.connect.sink.SinkConnector#start(Map)} method.
34+
*
3535
* @param properties The configuration settings of the connector.
3636
*/
3737
void configure(Map<String, String> properties);
3838

3939
/**
4040
* Retrieve the most current key schema for the given sink record.
41+
*
4142
* @param record The record to retrieve a key schema for.
4243
* @return The key Schema for the given record.
4344
*/
4445
Schema retrieveKeySchema(SinkRecord record);
4546

4647
/**
4748
* Retrieve the most current value schema for the given sink record.
49+
*
4850
* @param record The record to retrieve a value schema for.
4951
* @return The value Schema for the given record.
5052
*/

kcbq-connector/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
under the License.
2020
2121
-->
22-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
23+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2324
<modelVersion>4.0.0</modelVersion>
2425

2526
<parent>

kcbq-connector/src/main/java/com/wepay/kafka/connect/bigquery/BigQuerySinkConnector.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
import com.wepay.kafka.connect.bigquery.config.BigQuerySinkConfig;
2323
import com.wepay.kafka.connect.bigquery.config.BigQuerySinkTaskConfig;
2424
import com.wepay.kafka.connect.bigquery.utils.Version;
25+
import java.util.ArrayList;
26+
import java.util.HashMap;
27+
import java.util.List;
28+
import java.util.Map;
2529
import org.apache.kafka.common.config.Config;
2630
import org.apache.kafka.common.config.ConfigDef;
2731
import org.apache.kafka.common.config.ConfigValue;
@@ -30,22 +34,16 @@
3034
import org.slf4j.Logger;
3135
import org.slf4j.LoggerFactory;
3236

33-
import java.util.ArrayList;
34-
import java.util.HashMap;
35-
import java.util.List;
36-
import java.util.Map;
37-
3837
/**
3938
* A {@link SinkConnector} used to delegate BigQuery data writes to
4039
* {@link org.apache.kafka.connect.sink.SinkTask SinkTasks}.
4140
*/
4241
public class BigQuerySinkConnector extends SinkConnector {
4342

43+
private static final Logger logger = LoggerFactory.getLogger(BigQuerySinkConnector.class);
4444
private BigQuerySinkConfig config;
4545
private Map<String, String> configProperties;
4646

47-
private static final Logger logger = LoggerFactory.getLogger(BigQuerySinkConnector.class);
48-
4947
@Override
5048
public ConfigDef config() {
5149
logger.trace("connector.config()");

0 commit comments

Comments
 (0)