From 1c0a4f8d785954ae0215847771c787c9724b1017 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 24 Feb 2020 19:34:15 +0100 Subject: [PATCH] Polishing --- .../beans/factory/config/DependencyDescriptor.java | 4 ++-- .../context/annotation/ScopedProxyMode.java | 4 ++-- .../jmx/support/RegistrationPolicy.java | 4 ++-- .../messaging/simp/SimpMessageType.java | 4 ++-- .../orm/jpa/hibernate/beans/BeanSource.java | 4 ++-- .../web/reactive/socket/WebSocketMessage.java | 11 ++++++----- 6 files changed, 16 insertions(+), 15 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java index 408c9f2685..bf49aeb4ac 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -373,7 +373,7 @@ public class DependencyDescriptor extends InjectionPoint implements Serializable /** * Determine the name of the wrapped parameter/field. - * @return the declared name (never {@code null}) + * @return the declared name (may be {@code null} if unresolvable) */ @Nullable public String getDependencyName() { diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ScopedProxyMode.java b/spring-context/src/main/java/org/springframework/context/annotation/ScopedProxyMode.java index b2c4241180..08e7fd8e32 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/ScopedProxyMode.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/ScopedProxyMode.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,6 @@ public enum ScopedProxyMode { /** * Create a class-based proxy (uses CGLIB). */ - TARGET_CLASS; + TARGET_CLASS } diff --git a/spring-context/src/main/java/org/springframework/jmx/support/RegistrationPolicy.java b/spring-context/src/main/java/org/springframework/jmx/support/RegistrationPolicy.java index aba4a5d3c0..4c0da82e3a 100644 --- a/spring-context/src/main/java/org/springframework/jmx/support/RegistrationPolicy.java +++ b/spring-context/src/main/java/org/springframework/jmx/support/RegistrationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,6 @@ public enum RegistrationPolicy { * Registration should replace the affected MBean when attempting to register an MBean * under a name that already exists. */ - REPLACE_EXISTING; + REPLACE_EXISTING } diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageType.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageType.java index 58618785ae..ad55f9b238 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageType.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageType.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,6 @@ public enum SimpMessageType { DISCONNECT_ACK, - OTHER; + OTHER } diff --git a/spring-orm/src/test/java/org/springframework/orm/jpa/hibernate/beans/BeanSource.java b/spring-orm/src/test/java/org/springframework/orm/jpa/hibernate/beans/BeanSource.java index 7d1446722a..b70367bd15 100644 --- a/spring-orm/src/test/java/org/springframework/orm/jpa/hibernate/beans/BeanSource.java +++ b/spring-orm/src/test/java/org/springframework/orm/jpa/hibernate/beans/BeanSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,5 +18,5 @@ package org.springframework.orm.jpa.hibernate.beans; public enum BeanSource { SPRING, - FALLBACK; + FALLBACK } diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketMessage.java b/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketMessage.java index 0062918f7b..7802b56e90 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketMessage.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,9 +25,9 @@ import org.springframework.util.ObjectUtils; /** * Representation of a WebSocket message. - *

See static factory methods in {@link WebSocketSession} for creating messages - * with the {@link org.springframework.core.io.buffer.DataBufferFactory - * DataBufferFactory} for the session. + * + *

See static factory methods in {@link WebSocketSession} for creating messages with + * the {@link org.springframework.core.io.buffer.DataBufferFactory} for the session. * * @author Rossen Stoyanchev * @since 5.0 @@ -139,6 +139,7 @@ public class WebSocketMessage { return "WebSocket " + this.type.name() + " message (" + this.payload.readableByteCount() + " bytes)"; } + /** * WebSocket message types. */ @@ -158,7 +159,7 @@ public class WebSocketMessage { /** * WebSocket pong. */ - PONG; + PONG } }