Skip to content

Commit c6d882f

Browse files
committed
fix some javadoc warnings
1 parent dc28b82 commit c6d882f

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

jooby/src/main/java/org/jooby/Jooby.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3824,7 +3824,7 @@ public Jooby charset(final Charset charset) {
38243824
/**
38253825
* Set application locale (first listed are higher priority).
38263826
*
3827-
* @param Languages list of locale using the language tag format.
3827+
* @param languages List of locale using the language tag format.
38283828
* @return This instance.
38293829
*/
38303830
public Jooby lang(final String... languages) {

jooby/src/main/java/org/jooby/Request.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ default Optional<MediaType> accepts(final MediaType... types) {
564564
* Short version of <code>params().to(type)</code>.
565565
*
566566
* @param type Object type.
567+
* @param <T> Value type.
567568
* @return Instance of object.
568569
*/
569570
default <T> T params(final Class<T> type) {
@@ -659,6 +660,7 @@ default List<Upload> files(final String name) {
659660
* Short version of <code>body().to(type)</code>.
660661
*
661662
* @param type Object type.
663+
* @param <T> Value type.
662664
* @return Instance of object.
663665
* @throws Exception If body can't be converted or there is no HTTP body.
664666
*/

jooby/src/main/java/org/jooby/Result.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public Optional<Object> ifGet() {
201201
/**
202202
* Get a result value.
203203
*
204+
* @param <T> Value type.
204205
* @return Value or <code>null</code>
205206
*/
206207
public <T> T get() {
@@ -221,6 +222,7 @@ public Optional<Object> ifGet(final List<MediaType> types) {
221222
* Get a result value for the given types (accept header).
222223
*
223224
* @param types Accept header.
225+
* @param <T> Value type.
224226
* @return Result content or <code>null</code>.
225227
*/
226228
@SuppressWarnings("unchecked")

jooby/src/main/java/org/jooby/Route.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ static Mapper<Object> chain(final Mapper it, final Mapper next) {
333333
*
334334
* @param name Mapper's name.
335335
* @param fn Map function.
336+
* @param <T> Value type.
336337
* @return A new mapper.
337338
*/
338339
static <T> Mapper<T> create(final String name, final CheckedFunction1<T, Object> fn) {
@@ -1216,6 +1217,7 @@ private boolean validate(final Object value) {
12161217
* Get an attribute by name.
12171218
*
12181219
* @param name Attribute's name.
1220+
* @param <T> Attribute's type.
12191221
* @return Attribute's value or <code>null</code>.
12201222
*/
12211223
@SuppressWarnings("unchecked")
@@ -2183,6 +2185,7 @@ default boolean apply(final String prefix) {
21832185
* Attribute by name.
21842186
*
21852187
* @param name Attribute's name.
2188+
* @param <T> Attribute's type.
21862189
* @return Attribute value.
21872190
*/
21882191
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)