Added Javadoc to internal method

This commit is contained in:
Lukas Eder 2012-12-22 09:46:27 +01:00
parent 8ccad9947a
commit 8b6e4f2a27

View File

@ -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;
}