Skip to content

Commit 625a6a4

Browse files
committed
build: fix javadoc error and warnings
- WIP
1 parent f9cf984 commit 625a6a4

26 files changed

+179
-69
lines changed

jooby/src/main/java/io/jooby/AvailableSettings.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
* <li>via ENV variable, for example: <code>myprop=value java -jar myapp.jar</code>
2121
* </ul>
2222
*
23-
* <p>
24-
*
2523
* @since 3.0.0
2624
*/
2725
public interface AvailableSettings {
@@ -45,8 +43,8 @@ public interface AvailableSettings {
4543
String LANG = "application.lang";
4644

4745
/**
48-
* Location of log configuration file. Used by {@link LogConfigurer} and setting up at application
49-
* bootstrap time. You don't need to set this property.
46+
* Location of log configuration file. Used by {@link LoggingService} and setting up at
47+
* application bootstrap time. You don't need to set this property.
5048
*/
5149
String LOG_FILE = "application.logfile";
5250

jooby/src/main/java/io/jooby/CompletionListeners.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
public class CompletionListeners {
2121
private List<Route.Complete> listeners;
2222

23+
/** Creates a new completion listener. */
24+
public CompletionListeners() {}
25+
2326
/**
2427
* Add a listener.
2528
*

jooby/src/main/java/io/jooby/Context.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ interface Selector {
5555
*/
5656
Jooby select(String path);
5757

58+
/**
59+
* Creates an application selector. Selection is done based on context path.
60+
*
61+
* @param applications List of applications.
62+
* @return Selector.
63+
*/
5864
static Selector create(List<Jooby> applications) {
5965
return applications.size() == 1 ? single(applications.getFirst()) : multiple(applications);
6066
}
@@ -142,6 +148,11 @@ private static Selector single(Jooby defaultApp) {
142148
*/
143149
Router getRouter();
144150

151+
/**
152+
* Context output factory.
153+
*
154+
* @return Context output factory.
155+
*/
145156
OutputFactory getOutputFactory();
146157

147158
/**
@@ -174,6 +185,11 @@ private static Selector single(Jooby defaultApp) {
174185
*/
175186
@Nullable FlashMap flashOrNull();
176187

188+
/**
189+
* Value factory.
190+
*
191+
* @return Value factory.
192+
*/
177193
ValueFactory getValueFactory();
178194

179195
/**
@@ -1461,6 +1477,7 @@ static Context readOnly(@NonNull Context ctx) {
14611477
* @param ctx Originating context.
14621478
* @param ws WebSocket.
14631479
* @param binary True for sending binary message.
1480+
* @param callback Write callback.
14641481
* @return Read only context.
14651482
*/
14661483
static Context websocket(

jooby/src/main/java/io/jooby/DefaultErrorHandler.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ public class DefaultErrorHandler implements ErrorHandler {
2828

2929
private final Set<Class> muteTypes = new HashSet<>();
3030

31+
/** Default error handler. */
32+
public DefaultErrorHandler() {}
33+
3134
/**
3235
* Generate a log.debug call if any of the status code error occurs as exception.
3336
*
3437
* @param statusCodes Status codes to mute.
3538
* @return This error handler.
3639
*/
37-
public @NonNull DefaultErrorHandler mute(@NonNull StatusCode... statusCodes) {
40+
public DefaultErrorHandler mute(@NonNull StatusCode... statusCodes) {
3841
muteCodes.addAll(List.of(statusCodes));
3942
return this;
4043
}
@@ -45,7 +48,7 @@ public class DefaultErrorHandler implements ErrorHandler {
4548
* @param exceptionTypes Exception types to mute.
4649
* @return This error handler.
4750
*/
48-
public @NonNull DefaultErrorHandler mute(@NonNull Class<? extends Exception>... exceptionTypes) {
51+
public DefaultErrorHandler mute(@NonNull Class<? extends Exception>... exceptionTypes) {
4952
muteTypes.addAll(List.of(exceptionTypes));
5053
return this;
5154
}

jooby/src/main/java/io/jooby/ForwardingContext.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
*/
3838
public class ForwardingContext implements Context {
3939

40+
/** Delegate/forwarding body. */
4041
public static class ForwardingBody implements Body {
4142
protected final Body delegate;
4243

@@ -317,6 +318,7 @@ public Map<String, String> toMap() {
317318
}
318319
}
319320

321+
/** Forwarding/Delegate pattern over {@link Value}. */
320322
public static class ForwardingValue implements Value {
321323
protected final Value delegate;
322324

@@ -557,6 +559,7 @@ public Map<String, String> toMap() {
557559
}
558560
}
559561

562+
/** Forwarding/Delegate pattern over {@link QueryString}. */
560563
public static class ForwardingQueryString extends ForwardingValue implements QueryString {
561564
public ForwardingQueryString(QueryString queryString) {
562565
super(queryString);
@@ -573,6 +576,7 @@ public String queryString() {
573576
}
574577
}
575578

579+
/** Forwarding/Delegate pattern over {@link Formdata}. */
576580
public static class ForwardingFormdata extends ForwardingValue implements Formdata {
577581
public ForwardingFormdata(Formdata delegate) {
578582
super(delegate);

jooby/src/main/java/io/jooby/Jooby.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,7 @@ public static void runApp(@NonNull String[] args, @NonNull Supplier<Jooby> provi
10851085
* Setup default environment, logging (logback or log4j2) and run application.
10861086
*
10871087
* @param args Application arguments.
1088+
* @param server Web server.
10881089
* @param provider Application provider.
10891090
*/
10901091
public static void runApp(
@@ -1166,6 +1167,7 @@ public static void runApp(
11661167
* Setup default environment, logging (logback or log4j2) and run application.
11671168
*
11681169
* @param args Application arguments.
1170+
* @param server Web server.
11691171
* @param executionMode Default application execution mode. Can be overridden by application.
11701172
* @param provider Application provider.
11711173
*/
@@ -1265,6 +1267,7 @@ public static void runApp(
12651267
/**
12661268
* Setup default environment, logging (logback or log4j2) and run application.
12671269
*
1270+
* @param server Web server.
12681271
* @param executionMode Application execution mode.
12691272
* @param provider Application provider.
12701273
* @return Application.

jooby/src/main/java/io/jooby/ModelAndView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*
1919
* @since 2.0.0
2020
* @author edgar
21+
* @param <T> Model type.
2122
*/
2223
public class ModelAndView<T> {
2324

jooby/src/main/java/io/jooby/annotation/Generated.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
import java.lang.annotation.RetentionPolicy;
1111
import java.lang.annotation.Target;
1212

13+
/** Used internally to annotation generated MVC controllers. */
1314
@Retention(RetentionPolicy.RUNTIME)
1415
@Target(ElementType.TYPE)
1516
public @interface Generated {
17+
/**
18+
* Target controller class.
19+
*
20+
* @return Target controller class.
21+
*/
1622
Class<?> value();
1723
}

jooby/src/main/java/io/jooby/annotation/OpenApiRegister.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* @OpenApiRegister({Controller1.class, Controller2.class})
1818
* public class App extends Jooby {
1919
* ...
20+
* }
2021
* }</pre>
21-
*
2222
*/
2323
@Target(ElementType.TYPE)
2424
@Retention(RetentionPolicy.RUNTIME)

jooby/src/main/java/io/jooby/handler/AccessLogHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@
2323
import edu.umd.cs.findbugs.annotations.NonNull;
2424
import io.jooby.Context;
2525
import io.jooby.Route;
26-
import io.jooby.Router;
2726

2827
/**
2928
* Access Log Handler.
3029
*
3130
* <p>Log incoming requested using the <a
3231
* href="https://en.wikipedia.org/wiki/Common_Log_Format">NCSA format</a> (a.k.a common log format).
3332
* If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
34-
* please consider to set {@link Router#setTrustProxy(boolean)} option.
33+
* please consider to set {@link io.jooby.RouterOptions#setTrustProxy(boolean)} option.
3534
*
3635
* <h2>usage</h2>
3736
*

0 commit comments

Comments
 (0)