Make sure there no multiple empty lines and every file ends with a new line (#1417)

Signed-off-by: sirivarma <siri.varma@outlook.com>
This commit is contained in:
Siri Varma Vegiraju 2025-06-12 08:00:01 -07:00 committed by sirivarma
parent d7e7205c17
commit 0dd37f95da
30 changed files with 9 additions and 39 deletions

View File

@ -112,6 +112,7 @@
<module name="ModifierOrder"/>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
<property name="allowMultipleEmptyLines" value="false"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapDot"/>
@ -287,4 +288,5 @@
<module name="SuppressWarningsHolder"/>
</module>
<module name="SuppressWarningsFilter"/>
<module name="NewlineAtEndOfFile"/>
</module>

View File

@ -23,7 +23,6 @@ public class DaprClientProperties {
private Integer httpPort;
private Integer grpcPort;
/**
* Constructs a {@link DaprClientProperties}.
*/

View File

@ -15,7 +15,6 @@ package io.dapr.spring.boot.autoconfigure.pubsub;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = DaprPubSubProperties.CONFIG_PREFIX)
public class DaprPubSubProperties {

View File

@ -76,7 +76,6 @@ public class MySQLDaprKeyValueAdapter extends AbstractDaprKeyValueAdapter {
this.bindingName = bindingName;
}
@Override
public <T> Iterable<T> getAllOf(String keyspace, Class<T> type) {
Assert.hasText(keyspace, "Keyspace must not be empty");

View File

@ -18,7 +18,6 @@ public class DaprPredicate implements Predicate<Object> {
this(path, expected, (valueToCompare) -> ObjectUtils.nullSafeEquals(valueToCompare, expected));
}
/**
* Creates a new {@link DaprPredicate}.
*

View File

@ -192,7 +192,6 @@ public class DaprMessagingTemplate<T> implements DaprMessagingOperations<T>, App
return this;
}
@Override
public void send() {
template.doSend(topic, message);
@ -202,7 +201,5 @@ public class DaprMessagingTemplate<T> implements DaprMessagingOperations<T>, App
public Mono<Void> sendAsync() {
return template.doSendAsync(topic, message);
}
}
}

View File

@ -58,7 +58,6 @@ public final class DaprMessagingSenderContext extends SenderContext<DaprMessagin
return carrier.properties();
}
/**
* The name of the bean sending the message (typically a {@code DaprMessagingTemplate}).
* @return the name of the bean sending the message
@ -75,7 +74,6 @@ public final class DaprMessagingSenderContext extends SenderContext<DaprMessagin
return this.destination;
}
/**
* Acts as a carrier for a Dapr message and records the propagated properties for
* later access by the Dapr.

View File

@ -1,6 +1,5 @@
package io.dapr.spring.workflows.config;
import org.springframework.context.annotation.Import;
import java.lang.annotation.Retention;

View File

@ -13,6 +13,7 @@ limitations under the License.
package io.dapr.examples.workflows.childworkflow;
import io.dapr.durabletask.interruption.OrchestratorBlockedException;
import io.dapr.workflows.Workflow;
import io.dapr.workflows.WorkflowStub;
import io.dapr.workflows.WorkflowTaskOptions;

View File

@ -123,7 +123,6 @@ public class ActorId extends Object implements Comparable<ActorId> {
return new ActorId(id.toString());
}
/**
* Compares if two actors have the same content.
*

View File

@ -130,7 +130,6 @@ public class ActorClient implements AutoCloseable {
}
}
/**
* Build an instance of the Client based on the provided setup.
*

View File

@ -13,7 +13,6 @@ limitations under the License.
package io.dapr.springboot;
import io.dapr.actors.runtime.ActorRuntime;
import io.dapr.serializer.DefaultObjectSerializer;
import org.springframework.http.MediaType;
@ -124,5 +123,4 @@ public class DaprController {
@RequestBody(required = false) byte[] body) {
return ActorRuntime.getInstance().invokeReminder(type, id, reminder, body);
}
}

View File

@ -123,7 +123,6 @@ class DaprTopicSubscription {
this(pubsubName, topic, route, "", routes, metadata, bulkSubscribe);
}
/**
* Create a subscription topic.
*

View File

@ -48,7 +48,6 @@ public class WorkflowActivityClassWrapper<T extends WorkflowActivity> implements
return name;
}
@Override
public TaskActivity create() {
return ctx -> {

View File

@ -94,4 +94,4 @@ public class WorkflowRuntime implements AutoCloseable {
Thread.currentThread().interrupt();
}
}
}
}

View File

@ -655,7 +655,6 @@ abstract class AbstractDaprClient implements DaprClient, DaprPreviewClient {
return this.unlock(request);
}
private List<String> filterEmptyKeys(String... keys) {
return Arrays.stream(keys)
.filter(key -> !key.trim().isEmpty())

View File

@ -32,7 +32,6 @@ class GrpcChannelFacade implements Closeable {
*/
private final ManagedChannel channel;
/**
* Default access level constructor, in order to create an instance of this class use io.dapr.client.DaprClientBuilder
*

View File

@ -81,7 +81,6 @@ public final class BulkPublishEntry<T> {
return event;
}
public String getContentType() {
return contentType;
}

View File

@ -20,4 +20,4 @@ public enum BulkSubscribeAppResponseStatus {
SUCCESS,
RETRY,
DROP
}
}

View File

@ -55,4 +55,4 @@ public final class BulkSubscribeMessage<T> {
public Map<String, String> getMetadata() {
return metadata;
}
}
}

View File

@ -13,7 +13,6 @@ limitations under the License.
package io.dapr.client.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;

View File

@ -13,10 +13,8 @@ limitations under the License.
package io.dapr.client.domain;
public class QueryStateItem<T> {
/**
* The value of the state.
*/

View File

@ -13,7 +13,6 @@ limitations under the License.
package io.dapr.client.domain;
import java.util.Collections;
import java.util.List;
import java.util.Map;

View File

@ -13,7 +13,6 @@ limitations under the License.
package io.dapr.client.domain;
public enum UnlockResponseStatus {
/**

View File

@ -72,4 +72,4 @@ public class Query {
this.pagination = pagination;
return this;
}
}
}

View File

@ -254,8 +254,6 @@ public class Properties {
"DAPR_HTTP_CLIENT_MAX_IDLE_CONNECTIONS",
DEFAULT_HTTP_CLIENT_MAX_IDLE_CONNECTIONS);
/**
* Dapr's default maximum inbound message size for GRPC in bytes.
*/

View File

@ -217,5 +217,4 @@ public class DaprErrorDetails {
HELP,
LOCALIZED_MESSAGE,
}
}
}

View File

@ -62,7 +62,4 @@ public class DaprMetadataReceiverInterceptor implements ClientInterceptor {
}
};
}
}

View File

@ -13,7 +13,6 @@ limitations under the License.
package io.dapr.utils;
import io.dapr.serializer.DefaultObjectSerializer;
import java.io.IOException;
@ -145,7 +144,6 @@ public class DefaultContentTypeConverter {
return isContentType(contentType, "application/cloudevents+json");
}
public static boolean isJsonContentType(String contentType) {
return isContentType(contentType, "application/json");
}

View File

@ -50,7 +50,6 @@ import static io.dapr.config.Properties.GRPC_TLS_INSECURE;
import static io.dapr.config.Properties.GRPC_TLS_KEY_PATH;
import static io.dapr.config.Properties.SIDECAR_IP;
/**
* Utility methods for network, internal to Dapr SDK.
*/
@ -382,4 +381,4 @@ public final class NetworkUtils {
static boolean isIPv6(String ip) {
return IPV6_PATTERN.matcher(ip).matches();
}
}
}