Skip to content

Commit 2454fec

Browse files
authored
Make sure there no multiple empty lines and every file ends with a new line (#1417)
1 parent e3fc48d commit 2454fec

File tree

30 files changed

+9
-39
lines changed

30 files changed

+9
-39
lines changed

checkstyle.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
<module name="ModifierOrder"/>
113113
<module name="EmptyLineSeparator">
114114
<property name="allowNoEmptyLineBetweenFields" value="true"/>
115+
<property name="allowMultipleEmptyLines" value="false"/>
115116
</module>
116117
<module name="SeparatorWrap">
117118
<property name="id" value="SeparatorWrapDot"/>
@@ -287,4 +288,5 @@
287288
<module name="SuppressWarningsHolder"/>
288289
</module>
289290
<module name="SuppressWarningsFilter"/>
291+
<module name="NewlineAtEndOfFile"/>
290292
</module>

dapr-spring/dapr-spring-boot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprClientProperties.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public class DaprClientProperties {
2323
private Integer httpPort;
2424
private Integer grpcPort;
2525

26-
2726
/**
2827
* Constructs a {@link DaprClientProperties}.
2928
*/

dapr-spring/dapr-spring-boot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/pubsub/DaprPubSubProperties.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import org.springframework.boot.context.properties.ConfigurationProperties;
1717

18-
1918
@ConfigurationProperties(prefix = DaprPubSubProperties.CONFIG_PREFIX)
2019
public class DaprPubSubProperties {
2120

dapr-spring/dapr-spring-data/src/main/java/io/dapr/spring/data/MySQLDaprKeyValueAdapter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public MySQLDaprKeyValueAdapter(DaprClient daprClient, ObjectMapper mapper, Stri
7676
this.bindingName = bindingName;
7777
}
7878

79-
8079
@Override
8180
public <T> Iterable<T> getAllOf(String keyspace, Class<T> type) {
8281
Assert.hasText(keyspace, "Keyspace must not be empty");

dapr-spring/dapr-spring-data/src/main/java/io/dapr/spring/data/repository/query/DaprPredicate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public DaprPredicate(PropertyPath path, Object expected) {
1818
this(path, expected, (valueToCompare) -> ObjectUtils.nullSafeEquals(valueToCompare, expected));
1919
}
2020

21-
2221
/**
2322
* Creates a new {@link DaprPredicate}.
2423
*

dapr-spring/dapr-spring-messaging/src/main/java/io/dapr/spring/messaging/DaprMessagingTemplate.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ public SendMessageBuilder<T> withTopic(String topic) {
192192
return this;
193193
}
194194

195-
196195
@Override
197196
public void send() {
198197
template.doSend(topic, message);
@@ -202,7 +201,5 @@ public void send() {
202201
public Mono<Void> sendAsync() {
203202
return template.doSendAsync(topic, message);
204203
}
205-
206204
}
207-
208205
}

dapr-spring/dapr-spring-messaging/src/main/java/io/dapr/spring/messaging/observation/DaprMessagingSenderContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public Map<String, String> properties() {
5858
return carrier.properties();
5959
}
6060

61-
6261
/**
6362
* The name of the bean sending the message (typically a {@code DaprMessagingTemplate}).
6463
* @return the name of the bean sending the message
@@ -75,7 +74,6 @@ public String getDestination() {
7574
return this.destination;
7675
}
7776

78-
7977
/**
8078
* Acts as a carrier for a Dapr message and records the propagated properties for
8179
* later access by the Dapr.

dapr-spring/dapr-spring-workflows/src/main/java/io/dapr/spring/workflows/config/EnableDaprWorkflows.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.dapr.spring.workflows.config;
22

3-
43
import org.springframework.context.annotation.Import;
54

65
import java.lang.annotation.Retention;

examples/src/main/java/io/dapr/examples/workflows/childworkflow/DemoChildWorkflow.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
package io.dapr.examples.workflows.childworkflow;
1515

16+
import io.dapr.durabletask.interruption.OrchestratorBlockedException;
1617
import io.dapr.workflows.Workflow;
1718
import io.dapr.workflows.WorkflowStub;
1819
import io.dapr.workflows.WorkflowTaskOptions;

sdk-actors/src/main/java/io/dapr/actors/ActorId.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ public static ActorId createRandom() {
123123
return new ActorId(id.toString());
124124
}
125125

126-
127126
/**
128127
* Compares if two actors have the same content.
129128
*

0 commit comments

Comments
 (0)