Skip to content

Commit 1e7bfd9

Browse files
committed
Polishing
1 parent 5790fc9 commit 1e7bfd9

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

spring-core/src/main/java/org/springframework/util/SocketUtils.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ public static SortedSet<Integer> findAvailableUdpPorts(int numRequested, int min
194194
private static enum SocketType {
195195

196196
TCP {
197-
198197
@Override
199198
protected boolean isPortAvailable(int port) {
200199
try {
@@ -209,7 +208,6 @@ protected boolean isPortAvailable(int port) {
209208
},
210209

211210
UDP {
212-
213211
@Override
214212
protected boolean isPortAvailable(int port) {
215213
try {

spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public int[] batchUpdate(String sql, Map<String, ?>[] batchValues) {
357357

358358
@Override
359359
public int[] batchUpdate(String sql, SqlParameterSource[] batchArgs) {
360-
ParsedSql parsedSql = this.getParsedSql(sql);
360+
ParsedSql parsedSql = getParsedSql(sql);
361361
return NamedParameterBatchUpdateUtils.executeBatchUpdateWithNamedParameters(parsedSql, batchArgs, getJdbcOperations());
362362
}
363363

spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Header.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,8 +40,7 @@
4040

4141
/**
4242
* Whether the header is required.
43-
* <p>
44-
* Default is {@code true}, leading to an exception if the header missing. Switch this
43+
* <p>Default is {@code true}, leading to an exception if the header missing. Switch this
4544
* to {@code false} if you prefer a {@code null} in case of the header missing.
4645
*/
4746
boolean required() default true;

spring-messaging/src/test/java/org/springframework/messaging/handler/annotation/support/HeaderMethodArgumentResolverTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public void resolveArgument() throws Exception {
9090

9191
@Test
9292
public void resolveArgumentNativeHeader() throws Exception {
93-
9493
TestMessageHeaderAccessor headers = new TestMessageHeaderAccessor();
9594
headers.setNativeHeader("param1", "foo");
9695
Message<byte[]> message = MessageBuilder.withPayload(new byte[0]).setHeaders(headers).build();
@@ -100,7 +99,6 @@ public void resolveArgumentNativeHeader() throws Exception {
10099

101100
@Test
102101
public void resolveArgumentNativeHeaderAmbiguity() throws Exception {
103-
104102
TestMessageHeaderAccessor headers = new TestMessageHeaderAccessor();
105103
headers.setHeader("param1", "foo");
106104
headers.setNativeHeader("param1", "native-foo");

spring-web/src/main/java/org/springframework/web/method/annotation/ExpressionValueMethodArgumentResolver.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -60,8 +60,7 @@ protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
6060
}
6161

6262
@Override
63-
protected Object resolveName(String name, MethodParameter parameter, NativeWebRequest webRequest)
64-
throws Exception {
63+
protected Object resolveName(String name, MethodParameter parameter, NativeWebRequest webRequest) throws Exception {
6564
// No name to resolve
6665
return null;
6766
}

0 commit comments

Comments
 (0)