diff --git a/implementation/src/main/java/io/smallrye/config/ConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/ConfigSourceInterceptor.java index bab66c0d4..fd2a49de1 100644 --- a/implementation/src/main/java/io/smallrye/config/ConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/ConfigSourceInterceptor.java @@ -72,6 +72,8 @@ default Iterator iterateValues(ConfigSourceInterceptorContext conte } ConfigSourceInterceptor EMPTY = new ConfigSourceInterceptor() { + private static final long serialVersionUID = 5749001327530543433L; + @Override public ConfigValue getValue(final ConfigSourceInterceptorContext context, final String name) { return null; diff --git a/implementation/src/main/java/io/smallrye/config/ConfigValueConfigSourceWrapper.java b/implementation/src/main/java/io/smallrye/config/ConfigValueConfigSourceWrapper.java index 473c35110..34df75c17 100644 --- a/implementation/src/main/java/io/smallrye/config/ConfigValueConfigSourceWrapper.java +++ b/implementation/src/main/java/io/smallrye/config/ConfigValueConfigSourceWrapper.java @@ -7,6 +7,8 @@ import org.eclipse.microprofile.config.spi.ConfigSource; final class ConfigValueConfigSourceWrapper implements ConfigValueConfigSource, Serializable { + private static final long serialVersionUID = -1109094614437147326L; + private final ConfigSource configSource; private ConfigValueConfigSourceWrapper(final ConfigSource configSource) { diff --git a/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java index 968c0dcf3..e6828c2ce 100644 --- a/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java @@ -9,6 +9,8 @@ @Priority(Priorities.LIBRARY + 600) public class ExpressionConfigSourceInterceptor implements ConfigSourceInterceptor { + private static final long serialVersionUID = -539336551011916218L; + private static final int MAX_DEPTH = 32; @Override diff --git a/implementation/src/main/java/io/smallrye/config/FallbackConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/FallbackConfigSourceInterceptor.java index 9dc467824..f6a5c3063 100644 --- a/implementation/src/main/java/io/smallrye/config/FallbackConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/FallbackConfigSourceInterceptor.java @@ -7,6 +7,8 @@ @Priority(Priorities.LIBRARY + 400) public class FallbackConfigSourceInterceptor implements ConfigSourceInterceptor { + private static final long serialVersionUID = 1472367702046537565L; + private final Function mapping; public FallbackConfigSourceInterceptor(final Function mapping) { diff --git a/implementation/src/main/java/io/smallrye/config/LoggingConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/LoggingConfigSourceInterceptor.java index 691143ae3..ec127539e 100644 --- a/implementation/src/main/java/io/smallrye/config/LoggingConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/LoggingConfigSourceInterceptor.java @@ -6,6 +6,8 @@ @Priority(Priorities.LIBRARY + 200) public class LoggingConfigSourceInterceptor implements ConfigSourceInterceptor { + private static final long serialVersionUID = 367246512037404779L; + @Override public ConfigValue getValue(final ConfigSourceInterceptorContext context, final String name) { try { diff --git a/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java index a6af56c67..4d00fa7d2 100644 --- a/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java @@ -12,6 +12,7 @@ public class ProfileConfigSourceInterceptor implements ConfigSourceInterceptor { public static final String SMALLRYE_PROFILE = "smallrye.config.profile"; + private static final long serialVersionUID = -6305289277993917313L; private static final Comparator CONFIG_SOURCE_COMPARATOR = (o1, o2) -> { int res = Integer.compare(o2.getConfigSourceOrdinal(), o1.getConfigSourceOrdinal()); if (res != 0) { diff --git a/implementation/src/main/java/io/smallrye/config/RelocateConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/RelocateConfigSourceInterceptor.java index 08dd3eafc..705ec10df 100644 --- a/implementation/src/main/java/io/smallrye/config/RelocateConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/RelocateConfigSourceInterceptor.java @@ -7,6 +7,8 @@ @Priority(Priorities.LIBRARY + 1000) public class RelocateConfigSourceInterceptor implements ConfigSourceInterceptor { + private static final long serialVersionUID = 3476637906383945843L; + private final Function mapping; public RelocateConfigSourceInterceptor(final Function mapping) { diff --git a/implementation/src/main/java/io/smallrye/config/SecretKeys.java b/implementation/src/main/java/io/smallrye/config/SecretKeys.java index 0ed72393e..68a49aac9 100644 --- a/implementation/src/main/java/io/smallrye/config/SecretKeys.java +++ b/implementation/src/main/java/io/smallrye/config/SecretKeys.java @@ -1,9 +1,8 @@ package io.smallrye.config; -import java.io.Serializable; import java.util.function.Supplier; -public final class SecretKeys implements Serializable { +public final class SecretKeys { private static final ThreadLocal LOCKED = ThreadLocal.withInitial(() -> Boolean.TRUE); private SecretKeys() { diff --git a/implementation/src/main/java/io/smallrye/config/SecretKeysConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/SecretKeysConfigSourceInterceptor.java index ee2e84a2d..72e8123e5 100644 --- a/implementation/src/main/java/io/smallrye/config/SecretKeysConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/SecretKeysConfigSourceInterceptor.java @@ -6,6 +6,8 @@ @Priority(Priorities.LIBRARY + 100) public class SecretKeysConfigSourceInterceptor implements ConfigSourceInterceptor { + private static final long serialVersionUID = 7291982039729980590L; + private final Set secrets; public SecretKeysConfigSourceInterceptor(final Set secrets) { diff --git a/implementation/src/main/java/io/smallrye/config/SmallRyeConfig.java b/implementation/src/main/java/io/smallrye/config/SmallRyeConfig.java index 72e254359..caae5b254 100644 --- a/implementation/src/main/java/io/smallrye/config/SmallRyeConfig.java +++ b/implementation/src/main/java/io/smallrye/config/SmallRyeConfig.java @@ -267,6 +267,8 @@ public Converter getConverter(Class asType) { } private static class ConfigSources implements Serializable { + private static final long serialVersionUID = 3483018375584151712L; + private final List sources; private final List interceptors; private final ConfigSourceInterceptorContext interceptorChain; diff --git a/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptor.java index 2de10ba7d..838fffbb0 100644 --- a/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptor.java +++ b/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptor.java @@ -9,6 +9,8 @@ import org.eclipse.microprofile.config.spi.ConfigSource; class SmallRyeConfigSourceInterceptor implements ConfigSourceInterceptor { + private static final long serialVersionUID = 5513331820671039755L; + private final ConfigValueConfigSource configSource; private SmallRyeConfigSourceInterceptor(final ConfigSource configSource) { diff --git a/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptorContext.java b/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptorContext.java index b37fe8a39..3848e3bb5 100644 --- a/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptorContext.java +++ b/implementation/src/main/java/io/smallrye/config/SmallRyeConfigSourceInterceptorContext.java @@ -3,8 +3,10 @@ import java.util.Iterator; class SmallRyeConfigSourceInterceptorContext implements ConfigSourceInterceptorContext { - private ConfigSourceInterceptor interceptor; - private SmallRyeConfigSourceInterceptorContext next; + private static final long serialVersionUID = 6654406739008729337L; + + private final ConfigSourceInterceptor interceptor; + private final SmallRyeConfigSourceInterceptorContext next; SmallRyeConfigSourceInterceptorContext( final ConfigSourceInterceptor interceptor,