mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
code style: private static final
This commit is contained in:
parent
ef3be3987b
commit
45b54e8cc4
13 changed files with 20 additions and 22 deletions
|
|
@ -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<>();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue