Skip to content

Commit

Permalink
fix some javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Aug 3, 2016
1 parent dc28b82 commit c6d882f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jooby/src/main/java/org/jooby/Jooby.java
Original file line number Diff line number Diff line change
Expand Up @@ -3824,7 +3824,7 @@ public Jooby charset(final Charset charset) {
/**
* Set application locale (first listed are higher priority).
*
* @param Languages list of locale using the language tag format.
* @param languages List of locale using the language tag format.
* @return This instance.
*/
public Jooby lang(final String... languages) {
Expand Down
2 changes: 2 additions & 0 deletions jooby/src/main/java/org/jooby/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ default Optional<MediaType> accepts(final MediaType... types) {
* Short version of <code>params().to(type)</code>.
*
* @param type Object type.
* @param <T> Value type.
* @return Instance of object.
*/
default <T> T params(final Class<T> type) {
Expand Down Expand Up @@ -659,6 +660,7 @@ default List<Upload> files(final String name) {
* Short version of <code>body().to(type)</code>.
*
* @param type Object type.
* @param <T> Value type.
* @return Instance of object.
* @throws Exception If body can't be converted or there is no HTTP body.
*/
Expand Down
2 changes: 2 additions & 0 deletions jooby/src/main/java/org/jooby/Result.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public Optional<Object> ifGet() {
/**
* Get a result value.
*
* @param <T> Value type.
* @return Value or <code>null</code>
*/
public <T> T get() {
Expand All @@ -221,6 +222,7 @@ public Optional<Object> ifGet(final List<MediaType> types) {
* Get a result value for the given types (accept header).
*
* @param types Accept header.
* @param <T> Value type.
* @return Result content or <code>null</code>.
*/
@SuppressWarnings("unchecked")
Expand Down
3 changes: 3 additions & 0 deletions jooby/src/main/java/org/jooby/Route.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ static Mapper<Object> chain(final Mapper it, final Mapper next) {
*
* @param name Mapper's name.
* @param fn Map function.
* @param <T> Value type.
* @return A new mapper.
*/
static <T> Mapper<T> create(final String name, final CheckedFunction1<T, Object> fn) {
Expand Down Expand Up @@ -1216,6 +1217,7 @@ private boolean validate(final Object value) {
* Get an attribute by name.
*
* @param name Attribute's name.
* @param <T> Attribute's type.
* @return Attribute's value or <code>null</code>.
*/
@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -2183,6 +2185,7 @@ default boolean apply(final String prefix) {
* Attribute by name.
*
* @param name Attribute's name.
* @param <T> Attribute's type.
* @return Attribute value.
*/
@SuppressWarnings("unchecked")
Expand Down

0 comments on commit c6d882f

Please sign in to comment.