Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions CodenameOne/src/com/codename1/charts/util/ColorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
* @author shannah
*/
public class ColorUtil {
public static int LTGRAY = IColor.LightGray.argb;
public static int BLUE = IColor.Blue.argb;
public static int BLACK = IColor.Black.argb;
public static int WHITE = IColor.White.argb;
public static int CYAN = IColor.Cyan.argb;
public static int GREEN = IColor.Green.argb;
public static int YELLOW = IColor.Yellow.argb;
public static int MAGENTA = IColor.Magenta.argb;
public static int GRAY = IColor.Gray.argb;
public static final int LTGRAY = IColor.LightGray.argb;
public static final int BLUE = IColor.Blue.argb;
public static final int BLACK = IColor.Black.argb;
public static final int WHITE = IColor.White.argb;
public static final int CYAN = IColor.Cyan.argb;
public static final int GREEN = IColor.Green.argb;
public static final int YELLOW = IColor.Yellow.argb;
public static final int MAGENTA = IColor.Magenta.argb;
public static final int GRAY = IColor.Gray.argb;


public static int argb(int a, int r, int g, int b) {
Expand Down
2 changes: 1 addition & 1 deletion CodenameOne/src/com/codename1/io/Cookie.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Shai Almog
*/
public class Cookie implements Externalizable {
public static String STORAGE_NAME = "Cookies";
public static final String STORAGE_NAME = "Cookies";
private static boolean autoStored = true;

static {
Expand Down
6 changes: 3 additions & 3 deletions CodenameOne/src/com/codename1/io/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ public class Log {
/**
* Indicates that log reporting to the cloud should be disabled
*/
public static int REPORTING_NONE = 0;
public static final int REPORTING_NONE = 0;
/**
* Indicates that log reporting to the cloud should occur regardless of whether an error occurred
*/
public static int REPORTING_DEBUG = 1;
public static final int REPORTING_DEBUG = 1;
/**
* Indicates that log reporting to the cloud should occur only if an error occurred
*/
public static int REPORTING_PRODUCTION = 3;
public static final int REPORTING_PRODUCTION = 3;
private static boolean crashBound;
private static Log instance = new Log();
private static boolean initialized;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class JavascriptContext {
/**
* Flag to enable/disable logging to a debug log.
*/
public static boolean DEBUG = false;
public static final boolean DEBUG = false;
/**
* Running counter to mark the context ID. Each javascript context has its
* own lookup table, and this running counter allows us to generate a unique
Expand Down
6 changes: 3 additions & 3 deletions CodenameOne/src/com/codename1/location/LocationRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ public class LocationRequest {
/**
* When you need gps location updates
*/
public static int PRIORITY_HIGH_ACCUARCY = 0;
public static final int PRIORITY_HIGH_ACCUARCY = 0;

/**
* When accuracy is not highly important and you want to save battery
*/
public static int PRIORITY_MEDIUM_ACCUARCY = 1;
public static final int PRIORITY_MEDIUM_ACCUARCY = 1;

/**
* When accuracy is not important and you want to save battery
*/
public static int PRIORITY_LOW_ACCUARCY = 2;
public static final int PRIORITY_LOW_ACCUARCY = 2;

private int priority = PRIORITY_MEDIUM_ACCUARCY;

Expand Down
6 changes: 3 additions & 3 deletions CodenameOne/src/com/codename1/ui/html/DocumentInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ public class DocumentInfo {
/**
* Indicates that the request is for a page
*/
public static int TYPE_HTML = 0;
public static final int TYPE_HTML = 0;

/**
* Indicates that the request is for an image
*/
public static int TYPE_IMAGE = 1;
public static final int TYPE_IMAGE = 1;

/**
* Indicates that the request is for a CSS file
*/
public static int TYPE_CSS = 2;
public static final int TYPE_CSS = 2;

private static String DEFAULT_ENCODING = ENCODING_ISO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public final class PlatformDefaults {
* to specify the visual padding.
* <p>
*/
public static String VISUAL_PADDING_PROPERTY = "visualPadding";
public static final String VISUAL_PADDING_PROPERTY = "visualPadding";
static BoundSize RELATED_X = null, RELATED_Y = null, UNRELATED_X = null, UNRELATED_Y = null;
private static int DEF_H_UNIT = UnitValue.LPX;
private static int DEF_V_UNIT = UnitValue.LPY;
Expand Down
Loading