From 10bd7544fd22dccd7e8e32cb236eb50f102892d3 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Thu, 26 Oct 2017 13:26:20 +0200 Subject: Improve naming of fields and variables (#10242) * Variable names to conform to naming convention. * Use static constants where it makes sense --- .../java/com/vaadin/shared/communication/URLReference.java | 10 +++++----- .../src/main/java/com/vaadin/shared/ui/colorpicker/Color.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'shared/src') 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 -- cgit v1.2.3