Skip to content

Commit f5453cc

Browse files
committed
Polish
1 parent a97ecf7 commit f5453cc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/CodeFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public CodeFlow(String className, ClassWriter classWriter) {
9999
this.className = className;
100100
this.classWriter = classWriter;
101101
this.compilationScopes = new ArrayDeque<>();
102-
this.compilationScopes.add(new ArrayList<String>());
102+
this.compilationScopes.add(new ArrayList<>());
103103
}
104104

105105

spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ public <T> T query(
716716
Assert.notNull(rse, "ResultSetExtractor must not be null");
717717
logger.debug("Executing prepared SQL query");
718718

719-
return execute(psc, new PreparedStatementCallback<T>() {
719+
return execute(psc, new PreparedStatementCallback<>() {
720720
@Override
721721
@Nullable
722722
public T doInPreparedStatement(PreparedStatement ps) throws SQLException {

spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DefaultDatabaseClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public <R> RowsFetchSpec<R> mapValue(Class<R> mappedClass) {
364364
@Override
365365
public <R> FetchSpec<R> mapProperties(Class<R> mappedClass) {
366366
Assert.notNull(mappedClass, "Mapped class must not be null");
367-
return execute(this.sqlSupplier, result -> result.map(new DataClassRowMapper<R>(mappedClass)));
367+
return execute(this.sqlSupplier, result -> result.map(new DataClassRowMapper<>(mappedClass)));
368368
}
369369

370370
@Override

spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/UndertowWebSocketClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -166,7 +166,7 @@ private Mono<Void> executeInternal(URI url, HttpHeaders headers, WebSocketHandle
166166
DefaultNegotiation negotiation = new DefaultNegotiation(protocols, headers, builder);
167167
builder.setClientNegotiation(negotiation);
168168
builder.connect().addNotifier(
169-
new IoFuture.HandlingNotifier<WebSocketChannel, Object>() {
169+
new IoFuture.HandlingNotifier<>() {
170170
@Override
171171
public void handleDone(WebSocketChannel channel, Object attachment) {
172172
handleChannel(url, ContextWebSocketHandler.decorate(handler, contextView),

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/UndertowXhrTransport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -185,7 +185,7 @@ private ClientCallback<ClientExchange> createReceiveCallback(final TransportRequ
185185
return new ClientCallback<>() {
186186
@Override
187187
public void completed(final ClientExchange exchange) {
188-
exchange.setResponseListener(new ClientCallback<ClientExchange>() {
188+
exchange.setResponseListener(new ClientCallback<>() {
189189
@Override
190190
public void completed(ClientExchange result) {
191191
ClientResponse response = result.getResponse();
@@ -312,7 +312,7 @@ private ClientCallback<ClientExchange> createRequestCallback(final @Nullable Str
312312
return new ClientCallback<>() {
313313
@Override
314314
public void completed(ClientExchange result) {
315-
result.setResponseListener(new ClientCallback<ClientExchange>() {
315+
result.setResponseListener(new ClientCallback<>() {
316316
@Override
317317
public void completed(final ClientExchange result) {
318318
responses.add(result.getResponse());

0 commit comments

Comments
 (0)