From f45731996589b7d06a23d69e5716aab9c0c98400 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 20 Dec 2013 00:06:40 +0100 Subject: [PATCH] Consistent non-declaration of serialVersionUID --- .../java/org/springframework/core/convert/TypeDescriptor.java | 4 +--- .../org/springframework/core/enums/ShortCodedLabeledEnum.java | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java b/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java index a30e149754..29fb785479 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java +++ b/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java @@ -39,11 +39,9 @@ import org.springframework.util.ObjectUtils; * @author Sam Brannen * @since 3.0 */ +@SuppressWarnings("serial") public class TypeDescriptor implements Serializable { - private static final long serialVersionUID = 1L; - - static final Annotation[] EMPTY_ANNOTATION_ARRAY = new Annotation[0]; private static final Map, TypeDescriptor> typeDescriptorCache = new HashMap, TypeDescriptor>(); diff --git a/spring-core/src/main/java/org/springframework/core/enums/ShortCodedLabeledEnum.java b/spring-core/src/main/java/org/springframework/core/enums/ShortCodedLabeledEnum.java index 27a78d1c66..0c5e3fae5b 100644 --- a/spring-core/src/main/java/org/springframework/core/enums/ShortCodedLabeledEnum.java +++ b/spring-core/src/main/java/org/springframework/core/enums/ShortCodedLabeledEnum.java @@ -28,10 +28,9 @@ package org.springframework.core.enums; * @deprecated as of Spring 3.0, in favor of Java 5 enums. */ @Deprecated +@SuppressWarnings("serial") public class ShortCodedLabeledEnum extends AbstractGenericLabeledEnum { - private static final long serialVersionUID = 1L; - /** * The unique code of this enum. */