diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-26 13:26:20 +0200 |
---|---|---|
committer | Pekka Maanpää <pekkamaa@vaadin.com> | 2017-10-26 14:26:20 +0300 |
commit | 10bd7544fd22dccd7e8e32cb236eb50f102892d3 (patch) | |
tree | d0e6f2241dc2b612a0deeceeb30399e88e47ed6a /shared | |
parent | 7c8f440781835dbcf72bfbc47ab8be2f669a40e4 (diff) | |
download | vaadin-framework-10bd7544fd22dccd7e8e32cb236eb50f102892d3.tar.gz vaadin-framework-10bd7544fd22dccd7e8e32cb236eb50f102892d3.zip |
Improve naming of fields and variables (#10242)
* Variable names to conform to naming convention.
* Use static constants where it makes sense
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/communication/URLReference.java | 10 | ||||
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/colorpicker/Color.java | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/communication/URLReference.java b/shared/src/main/java/com/vaadin/shared/communication/URLReference.java index 0b993a196d..cd7b26a8e2 100644 --- a/shared/src/main/java/com/vaadin/shared/communication/URLReference.java +++ b/shared/src/main/java/com/vaadin/shared/communication/URLReference.java @@ -19,7 +19,7 @@ import java.io.Serializable; public class URLReference implements Serializable { - private String URL; + private String url; /** * Returns the URL that this object refers to. @@ -29,15 +29,15 @@ public class URLReference implements Serializable { * @return The URL for this reference or null if unknown. */ public String getURL() { - return URL; + return url; } /** * Sets the URL that this object refers to. * - * @param URL + * @param url */ - public void setURL(String URL) { - this.URL = URL; + public void setURL(String url) { + this.url = url; } } diff --git a/shared/src/main/java/com/vaadin/shared/ui/colorpicker/Color.java b/shared/src/main/java/com/vaadin/shared/ui/colorpicker/Color.java index b52453cda1..bf21a7311b 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/colorpicker/Color.java +++ b/shared/src/main/java/com/vaadin/shared/ui/colorpicker/Color.java @@ -38,7 +38,7 @@ public class Color implements Serializable { private int blue; private int alpha; - private String OUTOFRANGE = "Value must be within the range [0-255]. Was: "; + private static final String OUTOFRANGE = "Value must be within the range [0-255]. Was: "; /** * Creates a color that has the specified red, green, blue, and alpha values |