Fixed - Quarkus native image build #6213

pull/6220/head
Nikita Koksharov 4 months ago
parent 7019e51fb8
commit a4f23e5f2a

@ -37,14 +37,4 @@ final class JsonJacksonCodecSubstitute {
private void warmup() {
}
}
@Deprecated
@TargetClass(className = "org.redisson.codec.MarshallingCodec")
final class MarshallingCodecSubstitute {
@Substitute
private void warmup() {
}
}
}

@ -37,14 +37,4 @@ final class JsonJacksonCodecSubstitute {
private void warmup() {
}
}
@Deprecated
@TargetClass(className = "org.redisson.codec.MarshallingCodec")
final class MarshallingCodecSubstitute {
@Substitute
private void warmup() {
}
}
}

@ -37,14 +37,4 @@ final class JsonJacksonCodecSubstitute {
private void warmup() {
}
}
@Deprecated
@TargetClass(className = "org.redisson.codec.MarshallingCodec")
final class MarshallingCodecSubstitute {
@Substitute
private void warmup() {
}
}
}

@ -195,7 +195,6 @@ public class MarshallingCodec extends BaseCodec {
this(Protocol.RIVER, null);
configuration.setClassResolver(new SimpleClassResolver(classLoader));
this.classLoader = classLoader;
warmup();
}
public MarshallingCodec(ClassLoader classLoader, MarshallingCodec codec) {
@ -213,7 +212,6 @@ public class MarshallingCodec extends BaseCodec {
config.setVersion(codec.configuration.getVersion());
this.configuration = config;
this.classLoader = classLoader;
warmup();
}
public MarshallingCodec(Protocol protocol, MarshallingConfiguration configuration) {
@ -225,26 +223,10 @@ public class MarshallingCodec extends BaseCodec {
configuration = createConfig();
}
this.configuration = configuration;
warmup();
}
private static boolean warmedup = false;
private void warmup() {
if (warmedup) {
return;
}
warmedup = true;
try {
ByteBuf d = getValueEncoder().encode("testValue");
getValueDecoder().decode(d, null);
d.release();
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public Decoder<Object> getValueDecoder() {
return decoder;

@ -1 +1 @@
Args=--initialize-at-build-time=org.redisson.RedissonReference,org.redisson.executor.CronExpression,org.redisson.liveobject.core.RedissonObjectBuilder
Args=--initialize-at-build-time=org.redisson.RedissonReference,org.redisson.executor.CronExpression,org.redisson.liveobject.core.RedissonObjectBuilder --initialize-at-run-time=org.redisson.api.RandomIdGenerator

Loading…
Cancel
Save