Skip to content

Commit ab583dd

Browse files
chore(deps): update spring-javaformat-checkstyle.version to v0.0.45 (#4288)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Stephan Köninger <[email protected]>
1 parent 4d7d312 commit ab583dd

File tree

20 files changed

+99
-50
lines changed

20 files changed

+99
-50
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<flatten-maven-plugin.version>1.7.0</flatten-maven-plugin.version>
7676
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
7777
<checkstyle.version>10.24.0</checkstyle.version>
78-
<spring-javaformat-checkstyle.version>0.0.44</spring-javaformat-checkstyle.version>
78+
<spring-javaformat-checkstyle.version>0.0.45</spring-javaformat-checkstyle.version>
7979
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
8080
<node.version>v22.12.0</node.version>
8181
<jolokia-support-spring.version>2.2.9</jolokia-support-spring.version>

spring-boot-admin-server-ui/src/main/java/de/codecentric/boot/admin/server/ui/extensions/UiExtensionsScanner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ private String toPattern(String location) {
6969
return location.replace("classpath:", "classpath*:");
7070
}
7171

72-
@Nullable private String getResourcePath(String location, Resource resource) throws IOException {
72+
@Nullable
73+
private String getResourcePath(String location, Resource resource) throws IOException {
7374
String locationWithoutPrefix = location.replaceFirst("^[^:]+:", "");
7475
Matcher m = Pattern.compile(Pattern.quote(locationWithoutPrefix) + "(.+)$")
7576
.matcher(resource.getURI().toString());

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/domain/values/BuildVersion.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public static BuildVersion valueOf(String s) {
4343
return new BuildVersion(s);
4444
}
4545

46-
@Nullable public static BuildVersion from(Map<String, ?> map) {
46+
@Nullable
47+
public static BuildVersion from(Map<String, ?> map) {
4748
if (map.isEmpty()) {
4849
return null;
4950
}

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/DingTalkNotifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public void setWebhookUrl(String webhookUrl) {
136136
this.webhookUrl = webhookUrl;
137137
}
138138

139-
@Nullable public String getSecret() {
139+
@Nullable
140+
public String getSecret() {
140141
return secret;
141142
}
142143

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/DiscordNotifier.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ protected Object createDiscordNotification(InstanceEvent event, Instance instanc
111111
return new HttpEntity<>(body, headers);
112112
}
113113

114-
@Nullable protected String createContent(InstanceEvent event, Instance instance) {
114+
@Nullable
115+
protected String createContent(InstanceEvent event, Instance instance) {
115116
Map<String, Object> root = new HashMap<>();
116117
root.put("event", event);
117118
root.put("instance", instance);
@@ -123,7 +124,8 @@ protected Object createDiscordNotification(InstanceEvent event, Instance instanc
123124
return message.getValue(context, String.class);
124125
}
125126

126-
@Nullable public URI getWebhookUrl() {
127+
@Nullable
128+
public URI getWebhookUrl() {
127129
return webhookUrl;
128130
}
129131

@@ -139,15 +141,17 @@ public void setTts(boolean tts) {
139141
this.tts = tts;
140142
}
141143

142-
@Nullable public String getUsername() {
144+
@Nullable
145+
public String getUsername() {
143146
return username;
144147
}
145148

146149
public void setUsername(@Nullable String username) {
147150
this.username = username;
148151
}
149152

150-
@Nullable public String getAvatarUrl() {
153+
@Nullable
154+
public String getAvatarUrl() {
151155
return avatarUrl;
152156
}
153157

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/HipchatNotifier.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ protected boolean getNotify() {
115115
return notify;
116116
}
117117

118-
@Nullable protected String getMessage(InstanceEvent event, Instance instance) {
118+
@Nullable
119+
protected String getMessage(InstanceEvent event, Instance instance) {
119120
Map<String, Object> root = new HashMap<>();
120121
root.put("event", event);
121122
root.put("instance", instance);
@@ -137,23 +138,26 @@ protected String getColor(InstanceEvent event) {
137138
}
138139
}
139140

140-
@Nullable public URI getUrl() {
141+
@Nullable
142+
public URI getUrl() {
141143
return url;
142144
}
143145

144146
public void setUrl(@Nullable URI url) {
145147
this.url = url;
146148
}
147149

148-
@Nullable public String getAuthToken() {
150+
@Nullable
151+
public String getAuthToken() {
149152
return authToken;
150153
}
151154

152155
public void setAuthToken(@Nullable String authToken) {
153156
this.authToken = authToken;
154157
}
155158

156-
@Nullable public String getRoomId() {
159+
@Nullable
160+
public String getRoomId() {
157161
return roomId;
158162
}
159163

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/LetsChatNotifier.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ protected Object createMessage(InstanceEvent event, Instance instance) {
113113
return messageJson;
114114
}
115115

116-
@Nullable protected String getText(InstanceEvent event, Instance instance) {
116+
@Nullable
117+
protected String getText(InstanceEvent event, Instance instance) {
117118
Map<String, Object> root = new HashMap<>();
118119
root.put("event", event);
119120
root.put("instance", instance);
@@ -129,7 +130,8 @@ public void setRestTemplate(RestTemplate restTemplate) {
129130
this.restTemplate = restTemplate;
130131
}
131132

132-
@Nullable public URI getUrl() {
133+
@Nullable
134+
public URI getUrl() {
133135
return url;
134136
}
135137

@@ -145,15 +147,17 @@ public void setUsername(String username) {
145147
this.username = username;
146148
}
147149

148-
@Nullable public String getRoom() {
150+
@Nullable
151+
public String getRoom() {
149152
return room;
150153
}
151154

152155
public void setRoom(@Nullable String room) {
153156
this.room = room;
154157
}
155158

156-
@Nullable public String getToken() {
159+
@Nullable
160+
public String getToken() {
157161
return token;
158162
}
159163

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/MailNotifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ public void setTemplate(String template) {
150150
this.template = template;
151151
}
152152

153-
@Nullable public String getBaseUrl() {
153+
@Nullable
154+
public String getBaseUrl() {
154155
return baseUrl;
155156
}
156157

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/MicrosoftTeamsNotifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ protected EvaluationContext createEvaluationContext(InstanceEvent event, Instanc
226226
.build();
227227
}
228228

229-
@Nullable public URI getWebhookUrl() {
229+
@Nullable
230+
public URI getWebhookUrl() {
230231
return webhookUrl;
231232
}
232233

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/OpsGenieNotifier.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ protected String generateAlias(Instance instance) {
166166
return instance.getRegistration().getName() + "_" + instance.getId();
167167
}
168168

169-
@Nullable protected String getMessage(InstanceEvent event, Instance instance) {
169+
@Nullable
170+
protected String getMessage(InstanceEvent event, Instance instance) {
170171
Map<String, Object> root = new HashMap<>();
171172
root.put("event", event);
172173
root.put("instance", instance);
@@ -184,7 +185,8 @@ protected String getDescription(InstanceEvent event, Instance instance) {
184185
((InstanceStatusChangedEvent) event).getStatusInfo().getStatus());
185186
}
186187

187-
@Nullable public String getApiKey() {
188+
@Nullable
189+
public String getApiKey() {
188190
return apiKey;
189191
}
190192

@@ -204,39 +206,44 @@ public void setRestTemplate(RestTemplate restTemplate) {
204206
this.restTemplate = restTemplate;
205207
}
206208

207-
@Nullable public String getActions() {
209+
@Nullable
210+
public String getActions() {
208211
return actions;
209212
}
210213

211214
public void setActions(@Nullable String actions) {
212215
this.actions = actions;
213216
}
214217

215-
@Nullable public String getSource() {
218+
@Nullable
219+
public String getSource() {
216220
return source;
217221
}
218222

219223
public void setSource(@Nullable String source) {
220224
this.source = source;
221225
}
222226

223-
@Nullable public String getTags() {
227+
@Nullable
228+
public String getTags() {
224229
return tags;
225230
}
226231

227232
public void setTags(@Nullable String tags) {
228233
this.tags = tags;
229234
}
230235

231-
@Nullable public String getEntity() {
236+
@Nullable
237+
public String getEntity() {
232238
return entity;
233239
}
234240

235241
public void setEntity(@Nullable String entity) {
236242
this.entity = entity;
237243
}
238244

239-
@Nullable public String getUser() {
245+
@Nullable
246+
public String getUser() {
240247
return user;
241248
}
242249

0 commit comments

Comments
 (0)