Skip to content

Commit 9e71bbd

Browse files
committed
Fix checkstyle and doc
1 parent ad54637 commit 9e71bbd

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-3
lines changed

docs/asciidoc/session.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
== Session

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,20 @@ public interface Context extends Registry {
985985
*/
986986
@Nonnull Context send(@Nonnull ByteBuffer data);
987987

988+
/**
989+
* Send response data.
990+
*
991+
* @param data Response.
992+
* @return This context.
993+
*/
988994
@Nonnull Context send(@Nonnull byte[]... data);
989995

996+
/**
997+
* Send response data.
998+
*
999+
* @param data Response.
1000+
* @return This context.
1001+
*/
9901002
@Nonnull Context send(@Nonnull ByteBuffer[] data);
9911003

9921004
/**

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import javax.inject.Provider;
1616
import java.io.IOException;
1717
import java.lang.reflect.Constructor;
18-
import java.lang.reflect.InvocationTargetException;
1918
import java.nio.file.Files;
2019
import java.nio.file.Path;
2120
import java.nio.file.Paths;

modules/jooby-apt/src/main/java/io/jooby/apt/Annotations.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import javax.lang.model.element.AnnotationMirror;
3131
import javax.lang.model.element.AnnotationValue;
3232
import javax.lang.model.element.ExecutableElement;
33+
import javax.ws.rs.core.Context;
3334
import java.util.Arrays;
3435
import java.util.Collections;
3536
import java.util.LinkedHashSet;
@@ -84,7 +85,9 @@ public interface Annotations {
8485
*/
8586
Set<String> PATH_PARAMS = unmodifiableSet(new LinkedHashSet<>(asList(PathParam.class.getName())));
8687

87-
Set<String> CONTEXT_PARAMS = unmodifiableSet(new LinkedHashSet<>(asList(ContextParam.class.getName())));
88+
/** Context params. */
89+
Set<String> CONTEXT_PARAMS = unmodifiableSet(
90+
new LinkedHashSet<>(asList(ContextParam.class.getName(), Context.class.getName())));
8891

8992
/**
9093
* Query parameters.
@@ -94,6 +97,9 @@ public interface Annotations {
9497
javax.ws.rs.QueryParam.class.getName()
9598
)));
9699

100+
/**
101+
* Session parameters.
102+
*/
97103
Set<String> SESSION_PARAMS = unmodifiableSet(new LinkedHashSet<>(asList(
98104
SessionParam.class.getName()
99105
)));
@@ -117,7 +123,8 @@ public interface Annotations {
117123
/**
118124
* Flash parameters.
119125
*/
120-
Set<String> FLASH_PARAMS = unmodifiableSet(new LinkedHashSet<>(asList(FlashParam.class.getName())));
126+
Set<String> FLASH_PARAMS = unmodifiableSet(
127+
new LinkedHashSet<>(asList(FlashParam.class.getName())));
121128

122129
/**
123130
* Form parameters.

modules/jooby-test/src/main/java/io/jooby/MockSession.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class MockSession implements Session {
2828
/**
2929
* Creates a mock session.
3030
*
31+
* @param ctx Mock context.
3132
* @param sessionId Session ID.
3233
*/
3334
public MockSession(@Nonnull MockContext ctx, @Nonnull String sessionId) {
@@ -39,6 +40,8 @@ public MockSession(@Nonnull MockContext ctx, @Nonnull String sessionId) {
3940

4041
/**
4142
* Mock session with a random ID.
43+
*
44+
* @param ctx Mock context.
4245
*/
4346
public MockSession(@Nonnull MockContext ctx) {
4447
this(ctx, UUID.randomUUID().toString());

tests/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
<artifactId>jooby-freemarker</artifactId>
4545
<version>${jooby.version}</version>
4646
</dependency>
47+
<dependency>
48+
<groupId>io.jooby</groupId>
49+
<artifactId>jooby-jwt</artifactId>
50+
<version>${jooby.version}</version>
51+
</dependency>
4752
<dependency>
4853
<groupId>org.ow2.asm</groupId>
4954
<artifactId>asm</artifactId>

0 commit comments

Comments
 (0)