Skip to content

Commit

Permalink
Fixes #305. Missing serialVersionUIDs in Serializable classes. (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez authored May 8, 2020
1 parent a41f2a7 commit c0a1a95
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ default Iterator<ConfigValue> 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

@Priority(Priorities.LIBRARY + 400)
public class FallbackConfigSourceInterceptor implements ConfigSourceInterceptor {
private static final long serialVersionUID = 1472367702046537565L;

private final Function<String, String> mapping;

public FallbackConfigSourceInterceptor(final Function<String, String> mapping) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ConfigValue> CONFIG_SOURCE_COMPARATOR = (o1, o2) -> {
int res = Integer.compare(o2.getConfigSourceOrdinal(), o1.getConfigSourceOrdinal());
if (res != 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

@Priority(Priorities.LIBRARY + 1000)
public class RelocateConfigSourceInterceptor implements ConfigSourceInterceptor {
private static final long serialVersionUID = 3476637906383945843L;

private final Function<String, String> mapping;

public RelocateConfigSourceInterceptor(final Function<String, String> mapping) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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<Boolean> LOCKED = ThreadLocal.withInitial(() -> Boolean.TRUE);

private SecretKeys() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

@Priority(Priorities.LIBRARY + 100)
public class SecretKeysConfigSourceInterceptor implements ConfigSourceInterceptor {
private static final long serialVersionUID = 7291982039729980590L;

private final Set<String> secrets;

public SecretKeysConfigSourceInterceptor(final Set<String> secrets) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ public <T> Converter<T> getConverter(Class<T> asType) {
}

private static class ConfigSources implements Serializable {
private static final long serialVersionUID = 3483018375584151712L;

private final List<ConfigSource> sources;
private final List<ConfigSourceInterceptor> interceptors;
private final ConfigSourceInterceptorContext interceptorChain;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0a1a95

Please sign in to comment.