From b92df6d587eaa879f2ec31c1f5bba23d5698bae1 Mon Sep 17 00:00:00 2001 From: Sun Zhe <31067185+ZheSun88@users.noreply.github.com> Date: Mon, 29 Apr 2019 13:00:28 +0300 Subject: Code format (#11548) * Code format * Merge branch 'master' into code-format --- .../data/converter/StringToUuidConverter.java | 31 ++++++++++++---------- .../com/vaadin/server/BrowserWindowOpener.java | 14 +++++----- server/src/main/java/com/vaadin/ui/ComboBox.java | 6 ++--- server/src/main/java/com/vaadin/ui/Grid.java | 4 +-- server/src/main/java/com/vaadin/ui/Slider.java | 6 ++--- .../vaadin/server/CustomJSONSerializerTest.java | 2 +- 6 files changed, 33 insertions(+), 30 deletions(-) (limited to 'server') diff --git a/server/src/main/java/com/vaadin/data/converter/StringToUuidConverter.java b/server/src/main/java/com/vaadin/data/converter/StringToUuidConverter.java index 5d9436789f..185da51557 100644 --- a/server/src/main/java/com/vaadin/data/converter/StringToUuidConverter.java +++ b/server/src/main/java/com/vaadin/data/converter/StringToUuidConverter.java @@ -29,8 +29,8 @@ import com.vaadin.data.ValueContext; * Leading and trailing white spaces are ignored when converting from a String. *
*- * The String representation uses the canonical format of 32-characters with a hyphen - * to separate each of five groups of hexadecimal digits as defined in: + * The String representation uses the canonical format of 32-characters with a + * hyphen to separate each of five groups of hexadecimal digits as defined in: * RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace * http://www.ietf.org/rfc/rfc4122.txt *
@@ -38,33 +38,35 @@ import com.vaadin.data.ValueContext; * @author Vaadin Ltd * @since 8.8 */ -public class StringToUuidConverter implements Converternull
.
+ * Constructs a new converter instance with the given error message
+ * provider. Empty strings are converted to null
.
*
- * @param errorMessageProvider the error message provider to use if conversion fails
+ * @param errorMessageProvider
+ * the error message provider to use if conversion fails
*/
public StringToUuidConverter(ErrorMessageProvider errorMessageProvider) {
this.errorMessageProvider = errorMessageProvider;
}
@Override
- public Result - * Note: The new UI instance will not work with dependency injection (CDI and - * Spring). Use {@link BrowserWindowOpener(String)} instead. - * {@code VaadinServlet.getCurrent().getServletContext().getContextPath()} gives - * the current context path. - * + * Note: The new UI instance will not work with dependency injection (CDI + * and Spring). Use {@link BrowserWindowOpener(String)} instead. + * {@code VaadinServlet.getCurrent().getServletContext().getContextPath()} + * gives the current context path. + * * @param uiClass * the UI class that should be opened when the extended component * is clicked @@ -90,8 +90,8 @@ public class BrowserWindowOpener extends AbstractExtension { *
* Note: The new UI instance will not work with dependency injection (CDI
* and Spring). Use {@link BrowserWindowOpener(String)} instead.
- * {@code VaadinServlet.getCurrent().getServletContext().getContextPath()} gives
- * the current context path.
+ * {@code VaadinServlet.getCurrent().getServletContext().getContextPath()}
+ * gives the current context path.
*
* @param uiClass
* the UI class that should be opened when the extended component
diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java
index 8fadca6c35..b4d9a97c78 100644
--- a/server/src/main/java/com/vaadin/ui/ComboBox.java
+++ b/server/src/main/java/com/vaadin/ui/ComboBox.java
@@ -465,15 +465,15 @@ public class ComboBoxnull
- *
+ *
* @since 8.8
*/
public Column