aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorVesa Nieminen <vesa@vaadin.com>2020-04-21 13:32:18 +0300
committerGitHub <noreply@github.com>2020-04-21 13:32:18 +0300
commit14de087d19735517da59caf515a7386df4dfd9ce (patch)
tree04098abf8bf471003c793d79ebc28815e06f1033 /server
parent01936188ca3105271109e7b8a5ede42e8a1cc1d8 (diff)
downloadvaadin-framework-14de087d19735517da59caf515a7386df4dfd9ce.tar.gz
vaadin-framework-14de087d19735517da59caf515a7386df4dfd9ce.zip
Fixed the JavaDoc (#11950)
HierarchyMapper. getParentIndex() method has a different JavaDoc from the HierarchicalDataCommunicator. This is a simple fix for that. https://github.com/vaadin/framework/blob/master/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java#L96
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java
index 706f0a9391..621cb796d2 100644
--- a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java
@@ -381,11 +381,11 @@ public class HierarchicalDataCommunicator<T> extends DataCommunicator<T> {
}
/**
- * Returns parent index for the row or {@code null}.
+ * Returns parent index for the row or a negative value.
*
* @param item
* the item to find the parent of
- * @return the parent index or {@code null} for top-level items
+ * @return the parent index or a negative value for top-level items
*/
public Integer getParentIndex(T item) {
return mapper.getParentIndex(item);