diff --git a/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/IntrospectionException.java b/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/IntrospectionException.java index 76614c685cc0..a36ed8be058e 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/IntrospectionException.java +++ b/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/IntrospectionException.java @@ -18,11 +18,14 @@ */ package org.apache.maven.internal.impl.model.reflection; +import java.io.Serial; + public class IntrospectionException extends Exception { /** * */ + @Serial private static final long serialVersionUID = -6090771282553728784L; IntrospectionException(String message) { diff --git a/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/MethodMap.java b/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/MethodMap.java index fd88ae429556..0e5e430f0fcf 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/MethodMap.java +++ b/impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/reflection/MethodMap.java @@ -18,6 +18,7 @@ */ package org.apache.maven.internal.impl.model.reflection; +import java.io.Serial; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Hashtable; @@ -118,6 +119,7 @@ Method find(String methodName, Object... args) throws AmbiguousException { */ static class AmbiguousException extends Exception { + @Serial private static final long serialVersionUID = 751688436639650618L; } diff --git a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenBaseLogger.java b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenBaseLogger.java index f24c17b32fe6..611584404611 100644 --- a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenBaseLogger.java +++ b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenBaseLogger.java @@ -146,8 +146,6 @@ */ public class MavenBaseLogger extends LegacyAbstractLogger { - private static final long serialVersionUID = -632788891211436180L; - private static final Clock MONOTONIC_CLOCK = Clock.tick(Clock.systemUTC(), Duration.ofMillis(1)); private static final Instant START_TIME = MonotonicClock.now(); diff --git a/impl/maven-xml/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java b/impl/maven-xml/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java index f553b87f508e..8eef532fca5c 100644 --- a/impl/maven-xml/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java +++ b/impl/maven-xml/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java @@ -20,6 +20,7 @@ import javax.xml.stream.XMLStreamException; +import java.io.Serial; import java.io.Serializable; import java.io.StringWriter; import java.util.ArrayList; @@ -41,6 +42,7 @@ * NOTE: remove all the util code in here when separated, this class should be pure data. */ public class XmlNodeImpl implements Serializable, XmlNode { + @Serial private static final long serialVersionUID = 2567894443061173996L; protected final String prefix;