summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorSun Zhe <31067185+ZheSun88@users.noreply.github.com>2019-05-02 15:13:17 +0300
committerGitHub <noreply@github.com>2019-05-02 15:13:17 +0300
commit13f1c168d2bffcb66410276dda039d4cf79d5f9c (patch)
treeb5e02ff60d3f1033d00abcdccbb3f49dd0e55825 /client
parent5fa144193c0d5ed2022e576431a20beead2bfeb8 (diff)
downloadvaadin-framework-13f1c168d2bffcb66410276dda039d4cf79d5f9c.tar.gz
vaadin-framework-13f1c168d2bffcb66410276dda039d4cf79d5f9c.zip
code format (#11555)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java15
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VComboBox.java7
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VMenuBar.java9
-rw-r--r--client/src/main/java/com/vaadin/client/ui/panel/PanelConnector.java4
4 files changed, 19 insertions, 16 deletions
diff --git a/client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java b/client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java
index 2992d39d1f..987331a685 100644
--- a/client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java
+++ b/client/src/main/java/com/vaadin/client/data/AbstractRemoteDataSource.java
@@ -746,9 +746,9 @@ public abstract class AbstractRemoteDataSource<T> implements DataSource<T> {
if (trackInvalidatedRows) {
/*
- * We need to invalidate the cache from the inserted row onwards,
- * since the cache wants to be a contiguous range. It doesn't
- * support holes.
+ * We need to invalidate the cache from the inserted row
+ * onwards, since the cache wants to be a contiguous range. It
+ * doesn't support holes.
*
* If holes were supported, we could shift the higher part of
* "cached" and leave a hole the size of "count" in the middle.
@@ -769,11 +769,12 @@ public abstract class AbstractRemoteDataSource<T> implements DataSource<T> {
Profiler.leave("AbstractRemoteDataSource.insertRowData");
}
- private void trackInvalidatedRowsFromCache(Range invalidated, int insertedRowCount){
+ private void trackInvalidatedRowsFromCache(Range invalidated,
+ int insertedRowCount) {
/*
- * If we already have a map in invalidatedRows, we're in a state
- * where multiple row manipulations without data received have
- * happened and the cache restoration is prevented completely.
+ * If we already have a map in invalidatedRows, we're in a state where
+ * multiple row manipulations without data received have happened and
+ * the cache restoration is prevented completely.
*/
if (!invalidated.isEmpty() && invalidatedRows == null) {
diff --git a/client/src/main/java/com/vaadin/client/ui/VComboBox.java b/client/src/main/java/com/vaadin/client/ui/VComboBox.java
index 50d4c6588c..587710e612 100644
--- a/client/src/main/java/com/vaadin/client/ui/VComboBox.java
+++ b/client/src/main/java/com/vaadin/client/ui/VComboBox.java
@@ -121,7 +121,7 @@ public class VComboBox extends Composite implements Field, KeyDownHandler,
* icon URI or null
*/
public ComboBoxSuggestion(String key, String caption, String style,
- String untranslatedIconUri) {
+ String untranslatedIconUri) {
this.key = key;
this.caption = caption;
this.style = style;
@@ -1372,8 +1372,9 @@ public class VComboBox extends Composite implements Field, KeyDownHandler,
* allowed.
*/
if (BrowserInfo.get().isChrome()) {
- // Chrome supports "off" and random number does not work with Chrome
- getElement().setAttribute("autocomplete", "off");
+ // Chrome supports "off" and random number does not work with
+ // Chrome
+ getElement().setAttribute("autocomplete", "off");
} else {
getElement().setAttribute("autocomplete", Math.random() + "");
}
diff --git a/client/src/main/java/com/vaadin/client/ui/VMenuBar.java b/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
index 584e476850..d20f0e6aef 100644
--- a/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
+++ b/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
@@ -133,11 +133,12 @@ public class VMenuBar extends FocusableFlowPanel implements
addFocusHandler(this);
/*
- * Firefox prior to v65 auto-repeat works correctly only if we use a key press
- * handler, other browsers handle it correctly when using a key down
- * handler
+ * Firefox prior to v65 auto-repeat works correctly only if we use a key
+ * press handler, other browsers handle it correctly when using a key
+ * down handler
*/
- if (BrowserInfo.get().isGecko() && BrowserInfo.get().getGeckoVersion() < 65) {
+ if (BrowserInfo.get().isGecko()
+ && BrowserInfo.get().getGeckoVersion() < 65) {
addKeyPressHandler(this);
} else {
addKeyDownHandler(this);
diff --git a/client/src/main/java/com/vaadin/client/ui/panel/PanelConnector.java b/client/src/main/java/com/vaadin/client/ui/panel/PanelConnector.java
index 44d60121b1..70ede2fa99 100644
--- a/client/src/main/java/com/vaadin/client/ui/panel/PanelConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/panel/PanelConnector.java
@@ -97,9 +97,9 @@ public class PanelConnector extends AbstractSingleComponentContainerConnector
panel.captionNode.setClassName(VPanel.CLASSNAME + "-caption");
boolean hasCaption = hasCaption();
if (hasCaption) {
- panel.setCaption(getState().caption,getState().captionAsHtml);
+ panel.setCaption(getState().caption, getState().captionAsHtml);
} else {
- panel.setCaption("",false);
+ panel.setCaption("", false);
panel.captionNode.setClassName(VPanel.CLASSNAME + "-nocaption");
}