Removed @Property

This commit is contained in:
Robinson 2021-04-25 23:27:58 +02:00
parent b7e6a2aa22
commit 4d6c022cfd
3 changed files with 6 additions and 11 deletions

View File

@ -38,7 +38,6 @@ import dorkbox.jna.linux.structs.GtkStyle;
import dorkbox.jna.linux.structs.PangoRectangle; import dorkbox.jna.linux.structs.PangoRectangle;
import dorkbox.os.OS; import dorkbox.os.OS;
import dorkbox.os.OSUtil; import dorkbox.os.OSUtil;
import dorkbox.propertyLoader.Property;
import dorkbox.util.FileUtil; import dorkbox.util.FileUtil;
import dorkbox.util.MathUtil; import dorkbox.util.MathUtil;
@ -48,13 +47,11 @@ import dorkbox.util.MathUtil;
@SuppressWarnings({"unused", "WeakerAccess"}) @SuppressWarnings({"unused", "WeakerAccess"})
public public
class GtkTheme { class GtkTheme {
@Property
/** Fallback for an unknown tray image size. */ /** Fallback for an unknown tray image size. */
public static int TRAY_IMAGE_SIZE_FALLBACK = 24; public static volatile int TRAY_IMAGE_SIZE_FALLBACK = OS.getInt(GtkTheme.class.getCanonicalName() + ".TRAY_IMAGE_SIZE_FALLBACK", 24);
@Property
/** Fallback for an unknown tray menu image size. */ /** Fallback for an unknown tray menu image size. */
public static int TRAY_MENU_IMAGE_SIZE_FALLBACK = 16; public static volatile int TRAY_MENU_IMAGE_SIZE_FALLBACK = OS.getInt(GtkTheme.class.getCanonicalName() + ".TRAY_MENU_IMAGE_SIZE_FALLBACK", 16);
public static public static
Rectangle getPixelTextHeight(String text) { Rectangle getPixelTextHeight(String text) {

View File

@ -30,7 +30,7 @@ import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
import java.util.Enumeration; import java.util.Enumeration;
import dorkbox.propertyLoader.Property; import dorkbox.os.OS;
/** /**
* Java Font utilities * Java Font utilities
@ -39,8 +39,7 @@ import dorkbox.propertyLoader.Property;
public public
class FontUtil { class FontUtil {
/** Default location where all the fonts are stored */ /** Default location where all the fonts are stored */
@Property public static volatile String FONTS_LOCATION = OS.getProperty(FontUtil.class.getCanonicalName() + ".FONTS_LOCATION", "resources/fonts");
public static String FONTS_LOCATION = "resources/fonts";
/** All of the fonts in the {@link #FONTS_LOCATION} will be loaded by the Font manager */ /** All of the fonts in the {@link #FONTS_LOCATION} will be loaded by the Font manager */

View File

@ -19,7 +19,7 @@ package dorkbox.util.collections;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import dorkbox.propertyLoader.Property; import dorkbox.os.OS;
/** /**
* @author dorkbox, llc * @author dorkbox, llc
@ -30,8 +30,7 @@ class ConcurrentIterator<T> {
/** /**
* Specifies the load-factor for the IdentityMap used * Specifies the load-factor for the IdentityMap used
*/ */
@Property public static volatile float LOAD_FACTOR = OS.getFloat(ConcurrentIterator.class.getCanonicalName() + ".LOAD_FACTOR", 0.8F);
public static final float LOAD_FACTOR = 0.8F;
private static final AtomicInteger ID_COUNTER = new AtomicInteger(); private static final AtomicInteger ID_COUNTER = new AtomicInteger();
private final int ID = ID_COUNTER.getAndIncrement(); private final int ID = ID_COUNTER.getAndIncrement();