Add CodeHelper documentation 75/89175/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Apr 2020 22:19:33 +0000 (00:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Apr 2020 22:32:20 +0000 (00:32 +0200)
We are missing documentation for generic method types, add a few
words.

Change-Id: I3c3faa2836f4a6b55283028d04f5528728149bff
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/CodeHelpers.java

index b55734ea076072d91039e4fb73f8746209c83628..b7d8a8e48e6f0eb35962fef568c1f707d8b9ce34 100644 (file)
@@ -248,6 +248,7 @@ public final class CodeHelpers {
      * Check whether specified List is null and if so return an immutable list instead. This method supports
      * non-null default getter methods.
      *
+     * @param <T> list element type
      * @param input input list, may be null
      * @return Input list or an empty list.
      */
@@ -259,6 +260,8 @@ public final class CodeHelpers {
      * Check whether specified Map is null and if so return an immutable map instead. This method supports
      * non-null default getter methods.
      *
+     * @param <K> key type
+     * @param <V> value type
      * @param input input map, may be null
      * @return Input map or an empty map.
      */