aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/event
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-26 13:26:20 +0200
committerPekka Maanpää <pekkamaa@vaadin.com>2017-10-26 14:26:20 +0300
commit10bd7544fd22dccd7e8e32cb236eb50f102892d3 (patch)
treed0e6f2241dc2b612a0deeceeb30399e88e47ed6a /server/src/main/java/com/vaadin/event
parent7c8f440781835dbcf72bfbc47ab8be2f669a40e4 (diff)
downloadvaadin-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 'server/src/main/java/com/vaadin/event')
-rw-r--r--server/src/main/java/com/vaadin/event/dd/acceptcriteria/AcceptAll.java4
-rw-r--r--server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/AcceptAll.java b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/AcceptAll.java
index 6dfca521a4..d7684b0142 100644
--- a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/AcceptAll.java
+++ b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/AcceptAll.java
@@ -29,13 +29,13 @@ import com.vaadin.event.dd.DragAndDropEvent;
public final class AcceptAll extends ClientSideCriterion {
private static final long serialVersionUID = 7406683402153141461L;
- private static final AcceptCriterion singleton = new AcceptAll();
+ private static final AcceptCriterion SINGLETON = new AcceptAll();
private AcceptAll() {
}
public static AcceptCriterion get() {
- return singleton;
+ return SINGLETON;
}
@Override
diff --git a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java
index 8c4b82c0c7..292ac636a7 100644
--- a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java
+++ b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java
@@ -35,7 +35,7 @@ import com.vaadin.ui.Component;
public class SourceIsTarget extends ClientSideCriterion {
private static final long serialVersionUID = -451399314705532584L;
- private static final SourceIsTarget instance = new SourceIsTarget();
+ private static final SourceIsTarget INSTANCE = new SourceIsTarget();
private SourceIsTarget() {
}
@@ -52,7 +52,7 @@ public class SourceIsTarget extends ClientSideCriterion {
}
public static synchronized SourceIsTarget get() {
- return instance;
+ return INSTANCE;
}
}