Skip to content

Commit 4ad8c3b

Browse files
committed
#639 - Polishing.
Formatting and nullability in JavaDoc.
1 parent ed7e430 commit 4ad8c3b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/org/springframework/hateoas/mvc/AnnotatedParametersParameterAccessor.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ static class BoundMethodParameter {
141141
/**
142142
* Creates a new {@link BoundMethodParameter}
143143
*
144-
* @param parameter
145-
* @param value
146-
* @param attribute
144+
* @param parameter must not be {@literal null}.
145+
* @param value can be {@literal null}.
146+
* @param attribute can be {@literal null}.
147147
*/
148148
public BoundMethodParameter(MethodParameter parameter, Object value, AnnotationAttribute attribute) {
149149

@@ -190,7 +190,9 @@ public Object getValue() {
190190
* @return
191191
*/
192192
public String asString() {
193-
return value == null ? null
193+
194+
return value == null //
195+
? null //
194196
: (String) CONVERSION_SERVICE.convert(value, parameterTypeDescriptor, STRING_DESCRIPTOR);
195197
}
196198

0 commit comments

Comments
 (0)