Skip to content

Commit 728cb95

Browse files
committed
Fix formatting
1 parent f409aca commit 728cb95

File tree

6 files changed

+9
-16
lines changed

6 files changed

+9
-16
lines changed

core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistry.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ interface InstanceSupplier<T> {
105105
* bootstrap instances.
106106
* @return the instance or {@code null}
107107
*/
108-
@Nullable
109-
T get(BootstrapContext context);
108+
@Nullable T get(BootstrapContext context);
110109

111110
/**
112111
* Return the scope of the supplied instance.

core/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ public interface Adapter<T, R> {
383383
* @param value the value to adapt
384384
* @return an adapted value or {@code null}
385385
*/
386-
@Nullable
387-
R adapt(T value);
386+
@Nullable R adapt(T value);
388387

389388
}
390389

@@ -512,8 +511,7 @@ public interface Adapter<T, R> {
512511
* @param value the value to adapt
513512
* @return an adapted value or {@code null}
514513
*/
515-
@Nullable
516-
R adapt(@Nullable T value);
514+
@Nullable R adapt(@Nullable T value);
517515

518516
}
519517

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ private void sendErrorIfNecessary() throws IOException {
355355
}
356356
}
357357

358-
@Nullable
359-
String getMessage() {
358+
@Nullable String getMessage() {
360359
return this.message;
361360
}
362361

loader/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/AbstractJarWriter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ interface EntryTransformer {
362362
*/
363363
EntryTransformer NONE = (jarEntry) -> jarEntry;
364364

365-
@Nullable
366-
JarArchiveEntry transform(JarArchiveEntry jarEntry);
365+
@Nullable JarArchiveEntry transform(JarArchiveEntry jarEntry);
367366

368367
}
369368

module/spring-boot-jpa/src/main/java/org/springframework/boot/jpa/EntityManagerFactoryBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public Builder managedTypes(@Nullable PersistenceManagedTypes managedTypes) {
169169
* @return the builder for fluent usage
170170
* @see #managedTypes(PersistenceManagedTypes)
171171
*/
172-
public Builder packages(String @Nullable... packagesToScan) {
172+
public Builder packages(String @Nullable ... packagesToScan) {
173173
this.packagesToScan = packagesToScan;
174174
return this;
175175
}
@@ -222,7 +222,7 @@ public Builder properties(Map<String, ?> properties) {
222222
* @param mappingResources the mapping resources to use
223223
* @return the builder for fluent usage
224224
*/
225-
public Builder mappingResources(String @Nullable... mappingResources) {
225+
public Builder mappingResources(String @Nullable ... mappingResources) {
226226
this.mappingResources = mappingResources;
227227
return this;
228228
}

module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/context/WebServerApplicationContext.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public interface WebServerApplicationContext extends ApplicationContext {
5050
* the server has not yet been created.
5151
* @return the web server
5252
*/
53-
@Nullable
54-
WebServer getWebServer();
53+
@Nullable WebServer getWebServer();
5554

5655
/**
5756
* Returns the namespace of the web server application context or {@code null} if no
@@ -60,8 +59,7 @@ public interface WebServerApplicationContext extends ApplicationContext {
6059
* different port).
6160
* @return the server namespace
6261
*/
63-
@Nullable
64-
String getServerNamespace();
62+
@Nullable String getServerNamespace();
6563

6664
/**
6765
* Returns {@code true} if the specified context is a

0 commit comments

Comments
 (0)