Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* String constants used for metadata returned on Vectors.
*/
public class Constants {
private Constants() {}
private Constants() {
}

public static final String SQL_CATALOG_NAME_KEY = "SQL_CATALOG_NAME";
public static final String SQL_SCHEMA_NAME_KEY = "SQL_SCHEMA_NAME";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLExceptio
}

@Override
public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {}
public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
}

@Override
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {
Expand All @@ -241,7 +242,8 @@ public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws S
}

@Override
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {}
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {
}

@Override
public void setURL(int parameterIndex, URL x) throws SQLException {
Expand All @@ -259,62 +261,80 @@ public void setRowId(int parameterIndex, RowId x) throws SQLException {
}

@Override
public void setNString(int parameterIndex, String value) throws SQLException {}
public void setNString(int parameterIndex, String value) throws SQLException {
}

@Override
public void setNCharacterStream(int parameterIndex, Reader value, long length)
throws SQLException {}
throws SQLException {
}

@Override
public void setNClob(int parameterIndex, NClob value) throws SQLException {}
public void setNClob(int parameterIndex, NClob value) throws SQLException {
}

@Override
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {}
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
}

@Override
public void setBlob(int parameterIndex, InputStream inputStream, long length)
throws SQLException {}
throws SQLException {
}

@Override
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {}
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
}

@Override
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {}
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
}

@Override
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)
throws SQLException {}
throws SQLException {
}

@Override
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {}
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
}

@Override
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {}
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
}

@Override
public void setCharacterStream(int parameterIndex, Reader reader, long length)
throws SQLException {}
throws SQLException {
}

@Override
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {}
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
}

@Override
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {}
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
}

@Override
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {}
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
}

@Override
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {}
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
}

@Override
public void setClob(int parameterIndex, Reader reader) throws SQLException {}
public void setClob(int parameterIndex, Reader reader) throws SQLException {
}

@Override
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {}
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
}

@Override
public void setNClob(int parameterIndex, Reader reader) throws SQLException {}
public void setNClob(int parameterIndex, Reader reader) throws SQLException {
}

@Override
public ResultSet executeQuery(String sql) throws SQLException {
Expand All @@ -327,7 +347,8 @@ public int executeUpdate(String sql) throws SQLException {
}

@Override
public void close() throws SQLException {}
public void close() throws SQLException {
}

@Override
public int getMaxFieldSize() throws SQLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ public static class MockColumnMetaData {
private int displaySize;


private MockColumnMetaData() {}
private MockColumnMetaData() {
}

private String getLabel() {
return label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class OrcJniUtils {
private static final String LIBRARY_NAME = "arrow_orc_jni";
private static boolean isLoaded = false;

private OrcJniUtils() {}
private OrcJniUtils() {
}

static void loadOrcAdapterLibraryFromJar()
throws IOException, IllegalAccessException {
Expand Down
18 changes: 9 additions & 9 deletions java/dev/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
<property name="eachLine" value="true"/>
</module>

<module name="LineLength">
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>

<module name="TreeWalker">
<module name="OuterTypeFilename"/>
<module name="IllegalTokenText">
Expand All @@ -72,10 +77,6 @@
<property name="allowByTailComment" value="true"/>
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="LineLength">
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="EmptyBlock">
Expand Down Expand Up @@ -223,13 +224,12 @@
<module name="JavadocMethod">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingThrowsTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
<!-- This seems partially broken under JDK >= 9. -->
<property name="suppressLoadErrors" value="true"/>
</module>
<module name="MissingJavadocMethod">
<property name="scope" value="public"/>
<property name="minLineCount" value="2"/>
<property name="ignoreMethodNamesRegex" value="main"/>
</module>
<module name="JavadocType">
Expand Down
2 changes: 1 addition & 1 deletion java/dev/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
<suppress checks="NoFinalizer|OverloadMethodsDeclarationOrder|VariableDeclarationUsageDistance" files=".*" />

<!-- No license header in generated file -->
<suppress checks="header" files="flight.properties"/>
<suppress checks="header|LineLength" files="flight.properties"/>
</suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ public ClientStreamListener getWriter() {
*/
public void getResult() {
// After exchange is complete, make sure stream is drained to propagate errors through reader
while (reader.next()) { };
while (reader.next()) {
}
}

/** Shut down the streams in this call. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ public void enterIdle() {
}
}

private FlightGrpcUtils() {}
private FlightGrpcUtils() {
}

/**
* Creates a Flight service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ public void close() throws Exception {
}
}
// Drain the stream without the lock (as next() implicitly needs the lock)
while (next()) { }
while (next()) {
}
} catch (FlightRuntimeException e) {
suppressor = e;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,6 @@ default void start(VectorSchemaRoot root, DictionaryProvider dictionaries) {
* <p>The default value can be toggled globally by setting the JVM property arrow.flight.enable_zero_copy_write
* or the environment variable ARROW_FLIGHT_ENABLE_ZERO_COPY_WRITE.
*/
default void setUseZeroCopy(boolean enabled) {}
default void setUseZeroCopy(boolean enabled) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ public byte[] parseBytes(byte[] serialized) {

public static final Context.Key<String> PEER_IDENTITY_KEY = Context.keyWithDefault("arrow-flight-peer-identity", "");

private AuthConstants() {}
private AuthConstants() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public boolean hasNext() {
@Override
public void onError(Throwable t) {
completed = true;
while (future == null) {/* busy wait */}
while (future == null) {
/* busy wait */
}
future.cancel(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,12 @@ public void onBeforeSendingHeaders(CallHeaders outgoingHeaders) {
}

@Override
public void onCallCompleted(CallStatus status) {}
public void onCallCompleted(CallStatus status) {
}

@Override
public void onCallErrored(Throwable err) {}
public void onCallErrored(Throwable err) {
}
}

static class MultiHeaderClientMiddlewareFactory implements FlightClientMiddleware.Factory {
Expand Down Expand Up @@ -356,6 +358,7 @@ public void onHeadersReceived(CallHeaders incomingHeaders) {
}

@Override
public void onCallCompleted(CallStatus status) {}
public void onCallCompleted(CallStatus status) {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public FlightProducer producer(BufferAllocator allocator, Location location) thr
}

@Override
public void buildServer(FlightServer.Builder builder) throws Exception {}
public void buildServer(FlightServer.Builder builder) throws Exception {
}

@Override
public void client(BufferAllocator allocator, Location location, FlightClient client)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public final class IntervalStringUtils {
/**
* Constructor Method of class.
*/
private IntervalStringUtils( ) {}
private IntervalStringUtils( ) {
}

/**
* Formats a period similar to Oracle INTERVAL YEAR TO MONTH data type<br>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void testGetDefaultKeyStoreInstancePassword() throws IOException,

keyStoreMockedStatic
.when(() -> ClientAuthenticationUtils.getDefaultKeyStoreInstance("changeit"))
.thenReturn(keyStoreMock);
.thenReturn(keyStoreMock);
KeyStore receiveKeyStore = ClientAuthenticationUtils.getDefaultKeyStoreInstance("changeit");
Assert.assertEquals(receiveKeyStore, keyStoreMock);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public static ConfigOptions getDefault() {
return new ConfigOptions();
}

public ConfigOptions() {}
public ConfigOptions() {
}

public ConfigOptions withOptimize(boolean optimize) {
this.optimize = optimize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
* Utility methods for working with {@link Decimal} values.
*/
public class DecimalTypeUtil {
private DecimalTypeUtil() {}
private DecimalTypeUtil() {
}

/**
* Enum for supported mathematical operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
* Utility methods to convert between Arrow and Gandiva types.
*/
public class ArrowTypeHelper {
private ArrowTypeHelper() {}
private ArrowTypeHelper() {
}

static final int WIDTH_8 = 8;
static final int WIDTH_16 = 16;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
* Contains helper functions for constructing expression trees.
*/
public class TreeBuilder {
private TreeBuilder() {}
private TreeBuilder() {
}

/**
* Helper functions to create literal constants.
Expand Down
2 changes: 1 addition & 1 deletion java/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.19</version>
<version>8.29</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
Loading