Various code smell fixes from sonar
Compare changes
Files
29+ 34
− 28
@@ -21,10 +21,6 @@ import java.util.concurrent.TimeUnit;
@@ -21,10 +21,6 @@ import java.util.concurrent.TimeUnit;
@@ -38,10 +34,12 @@ import io.quarkus.arc.All;
@@ -38,10 +34,12 @@ import io.quarkus.arc.All;
* Service layer for defined loading caches. This centralizes the loading caches to reduce potential for inconsistent or
@@ -50,18 +48,27 @@ import io.quarkus.scheduler.Scheduled;
@@ -50,18 +48,27 @@ import io.quarkus.scheduler.Scheduled;
@@ -104,8 +111,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
@@ -104,8 +111,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
* Using the key and the discovered cache, do a lookup of the key, using the configured timeout and rethrowing any
@@ -133,13 +140,12 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
@@ -133,13 +140,12 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
* Checks if a cache should be refreshed by checking the last refresh time, and if so iterating all active keys and
* attempt a refresh. This is used for cases where we need to force the cache to refresh before it is called by
@@ -166,8 +172,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
@@ -166,8 +172,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
* Typed generic wrapper for loading caches. This will help match on internal types of expected output and increase type
@@ -179,8 +185,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
@@ -179,8 +185,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
* Builds the wrapper with assembled cache, the configurations that apply to the cache to reduce need for reflection,
@@ -202,8 +208,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
@@ -202,8 +208,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
* Retrieves a view of the cache keys for the current cache. Will only show keys that have realized values and not
@@ -221,8 +227,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
@@ -221,8 +227,8 @@ public class DefaultLoadingCacheManager implements LoadingCacheManager {
* Gets the pre-loading cache configuration that defines refresh periods, whether to enforce forced refreshes, and the