From 6f7ad0304c6362718ed8e97eb4952a794695fbea Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 1 Mar 2018 00:29:38 +0100 Subject: [PATCH] Polishing --- .../springframework/beans/TypeMismatchException.java | 10 +++++----- .../jms/support/JmsMessageHeaderAccessor.java | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/TypeMismatchException.java b/spring-beans/src/main/java/org/springframework/beans/TypeMismatchException.java index 95fedf4f96..487319d6b8 100644 --- a/spring-beans/src/main/java/org/springframework/beans/TypeMismatchException.java +++ b/spring-beans/src/main/java/org/springframework/beans/TypeMismatchException.java @@ -48,7 +48,7 @@ public class TypeMismatchException extends PropertyAccessException { /** - * Create a new TypeMismatchException. + * Create a new {@code TypeMismatchException}. * @param propertyChangeEvent the PropertyChangeEvent that resulted in the problem * @param requiredType the required target type */ @@ -57,7 +57,7 @@ public class TypeMismatchException extends PropertyAccessException { } /** - * Create a new TypeMismatchException. + * Create a new {@code TypeMismatchException}. * @param propertyChangeEvent the PropertyChangeEvent that resulted in the problem * @param requiredType the required target type (or {@code null} if not known) * @param cause the root cause (may be {@code null}) @@ -79,7 +79,7 @@ public class TypeMismatchException extends PropertyAccessException { } /** - * Create a new TypeMismatchException without PropertyChangeEvent. + * Create a new {@code TypeMismatchException} without a {@code PropertyChangeEvent}. * @param value the offending value that couldn't be converted (may be {@code null}) * @param requiredType the required target type (or {@code null} if not known) * @see #initPropertyName @@ -89,7 +89,7 @@ public class TypeMismatchException extends PropertyAccessException { } /** - * Create a new TypeMismatchException without PropertyChangeEvent. + * Create a new {@code TypeMismatchException} without a {@code PropertyChangeEvent}. * @param value the offending value that couldn't be converted (may be {@code null}) * @param requiredType the required target type (or {@code null} if not known) * @param cause the root cause (may be {@code null}) @@ -120,8 +120,8 @@ public class TypeMismatchException extends PropertyAccessException { /** * Return the name of the affected property, if available. */ - @Nullable @Override + @Nullable public String getPropertyName() { return this.propertyName; } diff --git a/spring-jms/src/main/java/org/springframework/jms/support/JmsMessageHeaderAccessor.java b/spring-jms/src/main/java/org/springframework/jms/support/JmsMessageHeaderAccessor.java index e5cf58464a..a63153ea8b 100644 --- a/spring-jms/src/main/java/org/springframework/jms/support/JmsMessageHeaderAccessor.java +++ b/spring-jms/src/main/java/org/springframework/jms/support/JmsMessageHeaderAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 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. @@ -88,7 +88,7 @@ public class JmsMessageHeaderAccessor extends NativeMessageHeaderAccessor { } /** - * Return the {@link JmsHeaders#PRIORITY}. + * Return the {@link JmsHeaders#PRIORITY priority}. * @see JmsHeaders#PRIORITY */ @Nullable @@ -127,8 +127,8 @@ public class JmsMessageHeaderAccessor extends NativeMessageHeaderAccessor { * Return the {@link JmsHeaders#TIMESTAMP timestamp}. * @see JmsHeaders#TIMESTAMP */ - @Nullable @Override + @Nullable public Long getTimestamp() { return (Long) getHeader(JmsHeaders.TIMESTAMP); }