Skip to content

Commit bd7811b

Browse files
authored
Merge pull request #257 from avaje/feature/javadoc-serial
Javadoc and serialVersionUID
2 parents f788c42 + f99dc1b commit bd7811b

File tree

29 files changed

+46
-27
lines changed

29 files changed

+46
-27
lines changed

http-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
<relativePath>..</relativePath>
99
</parent>
1010

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
package io.avaje.http.api;
22

3-
class DefaultException extends Exception {}
3+
class DefaultException extends Exception {
4+
5+
private static final long serialVersionUID = 1;
6+
7+
}

http-api/src/main/java/io/avaje/http/api/ExceptionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* This also serves as a mapping hint if the annotation itself does not narrow the exception
1919
* types through its {@link #value()}.
2020
* <li>Request and/or response objects (typically from the microframework). You may choose any
21-
* specific request/response type, e.g. Javalin's {@link io.javalin.Context} or Helidon's
22-
* Request/ServerResponse.
21+
* specific request/response type, e.g. Javalin's {@code io.javalin.Context} or Helidon's
22+
* ServerRequest/ServerResponse.
2323
* </ol>
2424
*
2525
* <p>Handler methods may be void or return an object for serialization.

http-api/src/main/java/io/avaje/http/api/InvalidPathArgumentException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
public class InvalidPathArgumentException extends InvalidTypeArgumentException {
77

8+
private static final long serialVersionUID = 1;
9+
810
/**
911
* Construct with a message.
1012
*/

http-api/src/main/java/io/avaje/http/api/InvalidTypeArgumentException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
public class InvalidTypeArgumentException extends IllegalArgumentException {
77

8+
private static final long serialVersionUID = 1;
9+
810
/**
911
* Construct with a message.
1012
*/

http-api/src/main/java/io/avaje/http/api/PathTypeConversion.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static int asInt(String value) {
7070
}
7171

7272
/** Convert to enum. */
73+
@SuppressWarnings({"unchecked", "rawtypes"})
7374
public static <T> Enum asEnum(Class<T> clazz, String value) {
7475
checkNull(value);
7576
try {

http-api/src/main/java/io/avaje/http/api/Post.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
*
1414
* @Post
1515
* void save(Customer customer) {
16-
...
16+
* ...
1717
* }
18+
* }</pre>
1819
*/
1920
@Target(METHOD)
2021
@Retention(RUNTIME)

http-api/src/main/java/io/avaje/http/api/RequiredArgumentException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
public class RequiredArgumentException extends IllegalArgumentException {
1111

12+
private static final long serialVersionUID = 1;
13+
1214
private String property;
1315

1416
/**

http-api/src/main/java/io/avaje/http/api/ValidationException.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.avaje.http.api;
22

3+
import java.io.Serializable;
34
import java.util.ArrayList;
45
import java.util.List;
56

@@ -67,7 +68,9 @@ public void setErrors(List<Violation> errors) {
6768
}
6869

6970
/** Error details including the field, error message and path */
70-
public static class Violation {
71+
public static class Violation implements Serializable {
72+
73+
private static final long serialVersionUID = 1;
7174

7275
protected String path;
7376
protected String field;

http-client-gson-adapter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-client-gson</artifactId>
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>io.avaje</groupId>
2222
<artifactId>avaje-http-client</artifactId>
23-
<version>2.0-RC2</version>
23+
<version>2.0-RC3</version>
2424
<scope>provided</scope>
2525
</dependency>
2626

http-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-client</artifactId>

http-generator-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-client-generator</artifactId>

http-generator-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-generator-core</artifactId>

http-generator-core/src/main/java/io/avaje/http/generator/core/PathSegments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public Segment segment(String varName) {
106106
}
107107

108108
/**
109-
* Return full path with <code>{}</code for named path params.
109+
* Return full path with <code>{}</code> for named path params.
110110
*/
111111
public String fullPath() {
112112
return fullPath("{", "}");

http-generator-helidon/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>avaje-http-parent</artifactId>
66
<groupId>io.avaje</groupId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-helidon-generator</artifactId>

http-generator-javalin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-javalin-generator</artifactId>

http-generator-javalin/src/main/java/io/avaje/http/javalin/After.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
*
1414
* @After
1515
* void save(Customer customer) {
16-
* ...
16+
* ...
1717
* }
18+
*
19+
* }</pre>
1820
*/
1921
@Target(METHOD)
2022
@Retention(SOURCE)

http-generator-javalin/src/main/java/io/avaje/http/javalin/Before.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
*
1414
* @Before
1515
* void save(Customer customer) {
16-
* ...
16+
* ...
1717
* }
18+
*
19+
* }</pre>
1820
*/
1921
@Target(METHOD)
2022
@Retention(SOURCE)

http-generator-jex/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>avaje-http-jex-generator</artifactId>

http-inject-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-http-parent</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
<relativePath>..</relativePath>
99
</parent>
1010

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<groupId>io.avaje</groupId>
1111
<artifactId>avaje-http-parent</artifactId>
12-
<version>2.0-RC2</version>
12+
<version>2.0-RC3</version>
1313
<packaging>pom</packaging>
1414

1515
<scm>

tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>avaje-http-parent</artifactId>
66
<groupId>io.avaje</groupId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>tests</artifactId>

tests/test-client-generation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>tests</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>test-client-generation</artifactId>

tests/test-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.avaje</groupId>
88
<artifactId>tests</artifactId>
9-
<version>2.0-RC2</version>
9+
<version>2.0-RC3</version>
1010
</parent>
1111

1212
<artifactId>test-client</artifactId>

tests/test-javalin-jsonb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.avaje</groupId>
77
<artifactId>tests</artifactId>
8-
<version>2.0-RC2</version>
8+
<version>2.0-RC3</version>
99
</parent>
1010

1111
<artifactId>test-javalin-jsonb</artifactId>

tests/test-javalin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>tests</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>test-javalin</artifactId>

tests/test-jex/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>tests</artifactId>
7-
<version>2.0-RC2</version>
7+
<version>2.0-RC3</version>
88
</parent>
99

1010
<artifactId>test-jex</artifactId>

tests/test-nima-jsonb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.avaje</groupId>
88
<artifactId>tests</artifactId>
9-
<version>2.0-RC2</version>
9+
<version>2.0-RC3</version>
1010
</parent>
1111

1212
<artifactId>test-nima-jsonb</artifactId>

tests/test-nima/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.avaje</groupId>
88
<artifactId>tests</artifactId>
9-
<version>2.0-RC2</version>
9+
<version>2.0-RC3</version>
1010
</parent>
1111

1212
<artifactId>test-nima</artifactId>

0 commit comments

Comments
 (0)