Skip to content

Commit 7bf0963

Browse files
committed
Fix javadoc errors
1 parent 97c732b commit 7bf0963

File tree

7 files changed

+22
-18
lines changed

7 files changed

+22
-18
lines changed

etc/checkstyle.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
DIR=$(cd "$(dirname "$0")"; pwd)
44

5-
sh $DIR/maven.sh checkstyle:checkstyle -P checkstyle
5+
if sh $DIR/maven.sh checkstyle:checkstyle -P checkstyle; then
6+
sh $DIR/javadoc.sh
7+
fi

etc/prepare-release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
DIR=$(cd "$(dirname "$0")"; pwd)
44

5-
sh $DIR/javadoc.sh
6-
sh $DIR/versions.sh
5+
if sh $DIR/javadoc.sh; then
6+
sh $DIR/versions.sh
7+
fi

modules/jooby-flyway/src/main/java/io/jooby/flyway/FlywayModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class FlywayModule implements Extension {
5555
/**
5656
* Creates a new Flyway module.
5757
*
58-
* @param name @param name The name/key of the data source to attach.
58+
* @param name The name/key of the data source to attach.
5959
*/
6060
public FlywayModule(@Nonnull String name) {
6161
this.name = name;

modules/jooby-hibernate/src/main/java/io/jooby/hibernate/HibernateModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*
5959
* - Use it
6060
*
61-
* <pre>{code
61+
* <pre>{@code
6262
* {
6363
*
6464
* get("/", ctx -> {
@@ -71,7 +71,7 @@
7171
*
7272
* Optionally, you can require/inject a {@link SessionFactory} too:
7373
*
74-
* <pre>{code
74+
* <pre>{@code
7575
* {
7676
*
7777
* get("/", ctx -> {

modules/jooby-hikari/src/main/java/io/jooby/hikari/HikariModule.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
*
6363
* To use any of these database you first need to add the h2 driver to your project and then:
6464
*
65-
* - define the `db` property in your application configuration file, like `db=mem` or
66-
* - pass the database type to the HikariModule. <code>`new HikariModule("mem")`</code>
65+
* - define the <code>db</code> property in your application configuration file, like
66+
* <code>db=mem</code> or
67+
* - pass the database type to the HikariModule. <code>new HikariModule("mem")</code>
6768
*
6869
* Alternative you can specify a jdbc connection string:
6970
*
@@ -74,6 +75,7 @@
7475
* The module exposes a {@link DataSource} instance which can be retrieve it after installing:
7576
*
7677
* <pre>{@code
78+
*
7779
* install(new HikariModule("jdbc:mysql://localhost/mydb"));
7880
*
7981
* DataSource dataSource = require(DataSource.class);
@@ -180,8 +182,8 @@ public HikariModule(@Nonnull HikariConfig hikari) {
180182
/**
181183
* Get a database type from jdbc url. Examples:
182184
*
183-
* - jdbc:mysql://localhost/mydb => mysql
184-
* - jdbc:postgresql://server/database => postgresql
185+
* - jdbc:mysql://localhost/mydb =&gt; mysql
186+
* - jdbc:postgresql://server/database =&gt; postgresql
185187
*
186188
* @param url Jdbc connection string (a.k.a jdbc url)
187189
* @return Database type or given jdbc connection string for unknown or bad urls.
@@ -197,8 +199,8 @@ public HikariModule(@Nonnull HikariConfig hikari) {
197199
/**
198200
* Get a database name from jdbc url. Examples:
199201
*
200-
* - jdbc:mysql://localhost/mydb => mydb
201-
* - jdbc:postgresql://server/database => database
202+
* - jdbc:mysql://localhost/mydb =&gt; mydb
203+
* - jdbc:postgresql://server/database =&gt; database
202204
*
203205
* @param url Jdbc connection string (a.k.a jdbc url)
204206
* @return Database name.

modules/jooby-jdbi/src/main/java/io/jooby/jdbi/JdbiModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* - Use it
4343
*
44-
* <pre>{code
44+
* <pre>{@code
4545
* {
4646
*
4747
* get("/", ctx -> {
@@ -54,7 +54,7 @@
5454
*
5555
* Handle instances are also available:
5656
*
57-
* <pre>{code
57+
* <pre>{@code
5858
* {
5959
*
6060
* get("/", ctx -> {
@@ -98,7 +98,7 @@ public JdbiModule() {
9898
/**
9999
* Creates a new Jdbi module.
100100
*
101-
* @param name @param name The name/key of the data source to attach.
101+
* @param name The name/key of the data source to attach.
102102
*/
103103
public JdbiModule(@Nonnull String name) {
104104
this.name = name;

modules/jooby-weld/src/main/java/io/jooby/di/WeldRegistry.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
import org.jboss.weld.environment.se.WeldContainer;
1212

1313
import javax.annotation.Nonnull;
14+
import javax.enterprise.inject.Any;
1415
import javax.enterprise.inject.literal.NamedLiteral;
1516

1617
import java.lang.annotation.Annotation;
1718

18-
import static javax.enterprise.inject.Any.Literal.INSTANCE;
19-
2019
class WeldRegistry implements Registry {
2120

2221
private WeldContainer container;
@@ -43,6 +42,6 @@ class WeldRegistry implements Registry {
4342

4443
private Annotation literal(ServiceKey key) {
4544
String name = key.getName();
46-
return name == null ? INSTANCE : NamedLiteral.of(name);
45+
return name == null ? Any.Literal.INSTANCE : NamedLiteral.of(name);
4746
}
4847
}

0 commit comments

Comments
 (0)