You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/value-api.adoc
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,5 +294,19 @@ The parser matches HTTP parameters in the following order:
294
294
- As constructor arguments
295
295
- As setter method
296
296
297
-
Also, constructor and method arguments must be annotated with
298
-
https://static.javadoc.io/javax.inject/javax.inject/1/javax/inject/Named.html[Named] when HTTP parameter name is not a valid Java identifier.
297
+
HTTP parameter name which are not a valid Java identifier must be annotated with https://static.javadoc.io/javax.inject/javax.inject/1/javax/inject/Named.html[Named]:
298
+
299
+
[source, java]
300
+
----
301
+
class Member {
302
+
public final String firstname;
303
+
304
+
public final String lastname;
305
+
306
+
public Member(@Named("first-name") String firstname, @Named("last-name") String lastname) {
0 commit comments