code style: private static final

This commit is contained in:
xenohedron 2023-07-07 23:34:16 -04:00
parent ef3be3987b
commit 45b54e8cc4
13 changed files with 20 additions and 22 deletions

View file

@ -11,7 +11,7 @@ import com.google.common.cache.Cache;
*/
public final class ImageCaches {
private final static ArrayList<Cache<?, ?>> IMAGE_CACHES;
private static final ArrayList<Cache<?, ?>> IMAGE_CACHES;
static {
IMAGE_CACHES = new ArrayList<>();

View file

@ -37,7 +37,7 @@ public class CardPanelRenderModeImage extends CardPanel {
private static final long serialVersionUID = -3272134219262184411L;
private final static SoftValuesLoadingCache<Key, BufferedImage> IMAGE_CACHE = ImageCaches.register(SoftValuesLoadingCache.from(CardPanelRenderModeImage::createImage));
private static final SoftValuesLoadingCache<Key, BufferedImage> IMAGE_CACHE = ImageCaches.register(SoftValuesLoadingCache.from(CardPanelRenderModeImage::createImage));
private static final int WIDTH_LIMIT = 90; // card width limit to create smaller counter

View file

@ -31,7 +31,7 @@ public class CardPanelRenderModeMTGO extends CardPanel {
// https://www.mtg.onl/evolution-of-magic-token-card-frame-design/
// Map of generated images
private final static Cache<ImageKey, BufferedImage> IMAGE_CACHE = CacheBuilder
private static final Cache<ImageKey, BufferedImage> IMAGE_CACHE = CacheBuilder
.newBuilder()
.maximumSize(3000)
.expireAfterAccess(60, TimeUnit.MINUTES)