Added Javadoc to internal method
This commit is contained in:
parent
8ccad9947a
commit
8b6e4f2a27
@ -94,6 +94,14 @@ class Val<T> extends AbstractField<T> implements Param<T> {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* A utility method that generates a field name.
|
||||
* <p>
|
||||
* <ul>
|
||||
* <li>If <code>paramName != null</code>, take <code>paramName</code></li>
|
||||
* <li>Otherwise, take the string value of <code>value</code></li>
|
||||
* </ul>
|
||||
*/
|
||||
private static String name(Object value, String paramName) {
|
||||
return paramName == null ? String.valueOf(value) : paramName;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user