Remove workaround related to the SmallRye configuration
Upgrade to Quarkus 3.0.0.Final Closes #19084
This commit is contained in:
parent
72663060c9
commit
30ea43f06f
2 changed files with 4 additions and 22 deletions
2
pom.xml
2
pom.xml
|
@ -41,7 +41,7 @@
|
|||
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
|
||||
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>
|
||||
|
||||
<quarkus.version>3.0.0.Beta1</quarkus.version>
|
||||
<quarkus.version>3.0.0.Final</quarkus.version>
|
||||
|
||||
<project.build-time>${timestamp}</project.build-time>
|
||||
|
||||
|
|
|
@ -74,13 +74,7 @@ public final class Configuration {
|
|||
}
|
||||
|
||||
public static String getRawValue(String propertyName) {
|
||||
try {
|
||||
return getConfig().getRawValue(propertyName);
|
||||
} catch (NullPointerException ignore) {
|
||||
// Tracker issue: https://github.com/keycloak/keycloak/issues/19084
|
||||
// Try-catch block can be removed once https://github.com/smallrye/smallrye-config/issues/906 is resolved
|
||||
return null;
|
||||
}
|
||||
return getConfig().getRawValue(propertyName);
|
||||
}
|
||||
|
||||
public static Iterable<String> getPropertyNames() {
|
||||
|
@ -88,13 +82,7 @@ public final class Configuration {
|
|||
}
|
||||
|
||||
public static ConfigValue getConfigValue(String propertyName) {
|
||||
try {
|
||||
return getConfig().getConfigValue(propertyName);
|
||||
} catch (NullPointerException ignore) {
|
||||
// Tracker issue: https://github.com/keycloak/keycloak/issues/19084
|
||||
// Try-catch block can be removed once https://github.com/smallrye/smallrye-config/issues/906 is resolved
|
||||
return null;
|
||||
}
|
||||
return getConfig().getConfigValue(propertyName);
|
||||
}
|
||||
|
||||
public static ConfigValue getKcConfigValue(String propertyName) {
|
||||
|
@ -102,13 +90,7 @@ public final class Configuration {
|
|||
}
|
||||
|
||||
public static Optional<String> getOptionalValue(String name) {
|
||||
try {
|
||||
return getConfig().getOptionalValue(name, String.class);
|
||||
} catch (NullPointerException ignore) {
|
||||
// Tracker issue: https://github.com/keycloak/keycloak/issues/19084
|
||||
// Try-catch block can be removed once https://github.com/smallrye/smallrye-config/issues/906 is resolved
|
||||
return Optional.empty();
|
||||
}
|
||||
return getConfig().getOptionalValue(name, String.class);
|
||||
}
|
||||
|
||||
public static Optional<String> getOptionalKcValue(String propertyName) {
|
||||
|
|
Loading…
Reference in a new issue