summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-03-20 13:41:26 +0100
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-05-08 14:46:35 +0300
commit4264096ac26c5a592bbea6fd099795dec30b4ef9 (patch)
tree84c752347a923f83eb0ef7c2d5264feebd91faa3 /server
parent3c9e3c62ab41706a5eee09cd18f525f027dae82b (diff)
downloadvaadin-framework-4264096ac26c5a592bbea6fd099795dec30b4ef9.tar.gz
vaadin-framework-4264096ac26c5a592bbea6fd099795dec30b4ef9.zip
Fix some javadoc errors (#8873)
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/annotations/PropertyId.java5
-rw-r--r--server/src/main/java/com/vaadin/data/HasItems.java10
-rw-r--r--server/src/main/java/com/vaadin/data/SelectionModel.java2
-rw-r--r--server/src/main/java/com/vaadin/data/Validator.java6
-rw-r--r--server/src/main/java/com/vaadin/event/ShortcutAction.java8
-rw-r--r--server/src/main/java/com/vaadin/server/ClientConnector.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/Component.java14
7 files changed, 23 insertions, 24 deletions
diff --git a/server/src/main/java/com/vaadin/annotations/PropertyId.java b/server/src/main/java/com/vaadin/annotations/PropertyId.java
index ecfceda706..c9e51057b2 100644
--- a/server/src/main/java/com/vaadin/annotations/PropertyId.java
+++ b/server/src/main/java/com/vaadin/annotations/PropertyId.java
@@ -34,9 +34,9 @@ import com.vaadin.data.HasValue;
* fields, with the name (ID) of the desired property as the parameter.
* <p>
* In following usage example, the text field would be bound to property "foo"
- * in the Entity class. <code>
+ * in the Entity class.
* <pre>
- * class Editor extends FormLayout {
+ class Editor extends FormLayout {
&#64;PropertyId("foo")
TextField myField = new TextField();
}
@@ -51,7 +51,6 @@ import com.vaadin.data.HasValue;
binder.bindInstanceFields(editor);
}
</pre>
- * </code>
*
* @since 8.0
* @author Vaadin Ltd
diff --git a/server/src/main/java/com/vaadin/data/HasItems.java b/server/src/main/java/com/vaadin/data/HasItems.java
index 18dd9fc99d..92cd6a435d 100644
--- a/server/src/main/java/com/vaadin/data/HasItems.java
+++ b/server/src/main/java/com/vaadin/data/HasItems.java
@@ -56,7 +56,7 @@ public interface HasItems<T> extends Component, Serializable {
*
* <pre>
* <code>
- * HasDataProvider<String> listing = new CheckBoxGroup<>();
+ * HasDataProvider&lt;String&gt; listing = new CheckBoxGroup&lt;&gt;();
* listing.setItems(Arrays.asList("a","b"));
* ...
*
@@ -87,7 +87,7 @@ public interface HasItems<T> extends Component, Serializable {
* <pre>
* <code>
* HasDataProvider<String> listing = new CheckBoxGroup<>();
- * listing.setItems(Arrays.asList("a","b"));
+ * listing.setItems("a","b");
* ...
*
* Collection<String> collection = ((ListDataProvider<String>)listing.getDataProvider()).getItems();
@@ -121,11 +121,11 @@ public interface HasItems<T> extends Component, Serializable {
*
* <pre>
* <code>
- * HasDataProvider<String> listing = new CheckBoxGroup<>();
- * listing.setItems(Arrays.asList("a","b"));
+ * HasDataProvider&lt;String&gt; listing = new CheckBoxGroup<&gt;();
+ * listing.setItems(Stream.of("a","b"));
* ...
*
- * Collection<String> collection = ((ListDataProvider<String>)listing.getDataProvider()).getItems();
+ * Collection<String> collection = ((ListDataProvider&lt;String&gt;)listing.getDataProvider()).getItems();
* </code>
* </pre>
* <p>
diff --git a/server/src/main/java/com/vaadin/data/SelectionModel.java b/server/src/main/java/com/vaadin/data/SelectionModel.java
index 397e2a1557..417d5becf8 100644
--- a/server/src/main/java/com/vaadin/data/SelectionModel.java
+++ b/server/src/main/java/com/vaadin/data/SelectionModel.java
@@ -204,7 +204,7 @@ public interface SelectionModel<T> extends Serializable {
* If all the added items were already selected and the removed items
* were not selected, this is a NO-OP.
* <p>
- * Duplicate items (in both add & remove sets) are ignored.
+ * Duplicate items (in both add &amp; remove sets) are ignored.
*
* @param addedItems
* the items to add, not {@code null}
diff --git a/server/src/main/java/com/vaadin/data/Validator.java b/server/src/main/java/com/vaadin/data/Validator.java
index 6dca15a8ed..30d6976bde 100644
--- a/server/src/main/java/com/vaadin/data/Validator.java
+++ b/server/src/main/java/com/vaadin/data/Validator.java
@@ -31,8 +31,8 @@ import com.vaadin.server.SerializablePredicate;
* For instance, the following validator checks if a number is positive:
*
* <pre>
- * Validator&lt;Integer&gt; v = num -> {
- * if (num >= 0)
+ * Validator&lt;Integer&gt; v = num -&gt; {
+ * if (num &gt;= 0)
* return ValidationResult.ok();
* else
* return ValidationResult.error("number must be positive");
@@ -87,7 +87,7 @@ public interface Validator<T>
* 10, inclusive:
*
* <pre>
- * Validator&lt;Integer&gt; v = Validator.from(num -> num >= 0 && num <= 10,
+ * Validator&lt;Integer&gt; v = Validator.from(num -&gt; num &gt;= 0 && num &lt;= 10,
* "number must be between 0 and 10");
* </pre>
*
diff --git a/server/src/main/java/com/vaadin/event/ShortcutAction.java b/server/src/main/java/com/vaadin/event/ShortcutAction.java
index 02bac50856..e7e5d7cf7b 100644
--- a/server/src/main/java/com/vaadin/event/ShortcutAction.java
+++ b/server/src/main/java/com/vaadin/event/ShortcutAction.java
@@ -141,15 +141,15 @@ public class ShortcutAction extends Action {
* Insert one or more modifier characters before the character to use as
* keycode. E.g <code>"&Save"</code> will make a shortcut responding to
* ALT-S, <code>"E^xit"</code> will respond to CTRL-X.<br/>
- * Multiple modifiers can be used, e.g <code>"&^Delete"</code> will respond
+ * Multiple modifiers can be used, e.g <code>"&amp;^Delete"</code> will respond
* to CTRL-ALT-D (the order of the modifier characters is not important).
* </p>
* <p>
* The modifier characters will be removed from the caption. The modifier
* character is be escaped by itself: two consecutive characters are turned
* into the original character w/o the special meaning. E.g
- * <code>"Save&&&close"</code> will respond to ALT-C, and the caption will
- * say "Save&close".
+ * <code>"Save&amp;&amp;&amp;close"</code> will respond to ALT-C, and the caption will
+ * say "Save&amp;close".
* </p>
*
* @param shorthandCaption
@@ -168,7 +168,7 @@ public class ShortcutAction extends Action {
* caption. I.e use any of the modifier characters in the caption to
* indicate the keycode, but the modifier will be the given set.<br/>
* E.g
- * <code>new ShortcutAction("Do &stuff", new int[]{ShortcutAction.ModifierKey.CTRL}));</code>
+ * <code>new ShortcutAction("Do &amp;stuff", new int[]{ShortcutAction.ModifierKey.CTRL}));</code>
* will respond to CTRL-S.
* </p>
*
diff --git a/server/src/main/java/com/vaadin/server/ClientConnector.java b/server/src/main/java/com/vaadin/server/ClientConnector.java
index 9b2df069ba..d48493b917 100644
--- a/server/src/main/java/com/vaadin/server/ClientConnector.java
+++ b/server/src/main/java/com/vaadin/server/ClientConnector.java
@@ -223,7 +223,7 @@ public interface ClientConnector extends Connector {
* Notifies the connector that it is connected to a VaadinSession (and
* therefore also to a UI).
* <p>
- * The caller of this method is {@link #setParent(ClientConnector)} if the
+ * The caller of this method is {@link Connector#setParent(ClientConnector)} if the
* parent is itself already attached to the session. If not, the parent will
* call the {@link #attach()} for all its children when it is attached to
* the session. This method is always called before the connector's data is
diff --git a/server/src/main/java/com/vaadin/ui/Component.java b/server/src/main/java/com/vaadin/ui/Component.java
index c690e945cb..28cb7be95e 100644
--- a/server/src/main/java/com/vaadin/ui/Component.java
+++ b/server/src/main/java/com/vaadin/ui/Component.java
@@ -616,17 +616,17 @@ public interface Component extends ClientConnector, Sizeable, Serializable {
* <td width=120><b>Example</b></td>
* </tr>
* <tr>
- * <td>&lt;b></td>
+ * <td>&lt;b&gt;</td>
* <td>bold</td>
* <td><b>bold text</b></td>
* </tr>
* <tr>
- * <td>&lt;i></td>
+ * <td>&lt;i&gt;</td>
* <td>italic</td>
* <td><i>italic text</i></td>
* </tr>
* <tr>
- * <td>&lt;u></td>
+ * <td>&lt;u&gt;</td>
* <td>underlined</td>
* <td><u>underlined text</u></td>
* </tr>
@@ -636,10 +636,10 @@ public interface Component extends ClientConnector, Sizeable, Serializable {
* <td>N/A</td>
* </tr>
* <tr>
- * <td>&lt;ul><br>
- * &lt;li>item1<br>
- * &lt;li>item1<br>
- * &lt;/ul></td>
+ * <td>&lt;ul&gt;<br>
+ * &lt;li&gt;item1<br>
+ * &lt;li&gt;item1<br>
+ * &lt;/ul&gt;</td>
* <td>item list</td>
* <td>
* <ul>