Skip to content

Commit

Permalink
Correct the javadoc warnings seen under JDK 17 (#775)
Browse files Browse the repository at this point in the history
* Correct the javadoc warnings seen under JDK 17
Fixes #719

Signed-off-by: Scott M Stark <starksm64@gmail.com>

---------

Signed-off-by: Scott M Stark <starksm64@gmail.com>
  • Loading branch information
starksm64 committed Feb 26, 2024
1 parent d9f95b4 commit d0b981c
Show file tree
Hide file tree
Showing 44 changed files with 385 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
* @since 2.0
*/
public final static class Literal extends AnnotationLiteral<ApplicationScoped> implements ApplicationScoped {

/** Default ApplicationScoped literal */
public static final Literal INSTANCE = new Literal();

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,29 @@
* Supports inline instantiation of the {@link BeforeDestroyed} qualifier.
*/
public final static class Literal extends AnnotationLiteral<BeforeDestroyed> implements BeforeDestroyed {

/** Default RequestScoped literal */
public static final Literal REQUEST = of(RequestScoped.class);
/** Default ConversationScoped literal */

public static final Literal CONVERSATION = of(ConversationScoped.class);
/** Default SessionScoped literal */

public static final Literal SESSION = of(SessionScoped.class);
/** Default ApplicationScoped literal */

public static final Literal APPLICATION = of(ApplicationScoped.class);

private static final long serialVersionUID = 1L;

/** */
private final Class<? extends Annotation> value;

/**
* Obtain the literal of the provided scope annotation
*
* @param value - the scope annotation
* @return a new Literal value for the provided scope annotation
*/
public static Literal of(Class<? extends Annotation> value) {
return new Literal(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,37 @@ public class BusyConversationException extends ContextException {

private static final long serialVersionUID = -3599813072560026919L;

/**
* default ctor
*/
public BusyConversationException() {
super();
}

/**
* Create exception with given message
*
* @param message - context information
*/
public BusyConversationException(String message) {
super(message);
}

/**
* Create exception with given cause
*
* @param cause - cause of exception
*/
public BusyConversationException(Throwable cause) {
super(cause);
}

/**
* Create exception with given message and cause
*
* @param message - context information
* @param cause - cause of exception
*/
public BusyConversationException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
19 changes: 19 additions & 0 deletions api/src/main/java/jakarta/enterprise/context/ContextException.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,37 @@ public class ContextException extends RuntimeException {

private static final long serialVersionUID = -3599813072560026919L;

/**
* default ctor
*/
public ContextException() {
super();
}

/**
* Create exception with given message and cause
*
* @param message - context information
*/
public ContextException(String message) {
super(message);
}

/**
* Create exception with given message and cause
*
* @param cause - cause of exception
*/
public ContextException(Throwable cause) {
super(cause);
}

/**
* Create exception with given message and cause
*
* @param message - context information
* @param cause - cause of exception
*/
public ContextException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,37 @@ public class ContextNotActiveException extends ContextException {

private static final long serialVersionUID = -3599813072560026919L;

/**
* Default ctor
*/
public ContextNotActiveException() {
super();
}

/**
* Create exception with given message
*
* @param message - context information
*/
public ContextNotActiveException(String message) {
super(message);
}

/**
* Create exception with given cause
*
* @param cause - cause of exception
*/
public ContextNotActiveException(Throwable cause) {
super(cause);
}

/**
* Create exception with given message and cause
*
* @param message - context information
* @param cause - cause of exception
*/
public ContextNotActiveException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
* @since 2.0
*/
public final static class Literal extends AnnotationLiteral<ConversationScoped> implements ConversationScoped {

/** Default ConversationScoped literal */
public static final Literal INSTANCE = new Literal();

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
* @since 2.0
*/
public final static class Literal extends AnnotationLiteral<Dependent> implements Dependent {

/** Default Dependent literal */
public static final Literal INSTANCE = new Literal();

private static final long serialVersionUID = 1L;
Expand Down
12 changes: 11 additions & 1 deletion api/src/main/java/jakarta/enterprise/context/Destroyed.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,29 @@
* @author Martin Kouba
*/
public final static class Literal extends AnnotationLiteral<Destroyed> implements Destroyed {

/** Default RequestScoped literal */
public static final Literal REQUEST = of(RequestScoped.class);
/** Default ConversationScoped literal */

public static final Literal CONVERSATION = of(ConversationScoped.class);
/** Default SessionScoped literal */

public static final Literal SESSION = of(SessionScoped.class);
/** Default ApplicationScoped literal */

public static final Literal APPLICATION = of(ApplicationScoped.class);

private static final long serialVersionUID = 1L;

/** */
private final Class<? extends Annotation> value;

/**
* Obtain the literal of the provided scope annotation
*
* @param value - the scope annotation
* @return a new Literal value for the provided scope annotation
*/
public static Literal of(Class<? extends Annotation> value) {
return new Literal(value);
}
Expand Down
12 changes: 11 additions & 1 deletion api/src/main/java/jakarta/enterprise/context/Initialized.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,29 @@
* @author Martin Kouba
*/
public final static class Literal extends AnnotationLiteral<Initialized> implements Initialized {

/** Default RequestScoped literal */
public static final Literal REQUEST = of(RequestScoped.class);
/** Default ConversationScoped literal */

public static final Literal CONVERSATION = of(ConversationScoped.class);
/** Default SessionScoped literal */

public static final Literal SESSION = of(SessionScoped.class);
/** Default ApplicationScoped literal */

public static final Literal APPLICATION = of(ApplicationScoped.class);

private static final long serialVersionUID = 1L;

/** */
private final Class<? extends Annotation> value;

/**
* Obtain the literal of the provided scope annotation
*
* @param value - the scope annotation
* @return a new Literal value for the provided scope annotation
*/
public static Literal of(Class<? extends Annotation> value) {
return new Literal(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,37 @@ public class NonexistentConversationException extends ContextException {

private static final long serialVersionUID = -3599813072560026919L;

/**
* Default ctor
*/
public NonexistentConversationException() {
super();
}

/**
* Create exception with given message
*
* @param message - context information
*/
public NonexistentConversationException(String message) {
super(message);
}

/**
* Create exception with given cause
*
* @param cause - cause of exception
*/
public NonexistentConversationException(Throwable cause) {
super(cause);
}

/**
* Create exception with given message and cause
*
* @param message - context information
* @param cause - cause of exception
*/
public NonexistentConversationException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
* @since 2.0
*/
public final static class Literal extends AnnotationLiteral<RequestScoped> implements RequestScoped {

/** Default RequestScope literal */
public static final Literal INSTANCE = new Literal();

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
* @since 2.0
*/
public final static class Literal extends AnnotationLiteral<SessionScoped> implements SessionScoped {

/** Default SessionScoped literal */
public static final Literal INSTANCE = new Literal();

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,28 @@ static Builder builder() {
*/
interface Builder {

/**
* Set the notification executor
*
* @param executor - {@linkplain Executor}
* @return this
*/
Builder setExecutor(Executor executor);

/**
* Set an option value
*
* @param optionName - name
* @param optionValue - value
* @return this
*/
Builder set(String optionName, Object optionValue);

/**
* Build the notification options
*
* @return NotificationOptions
*/
NotificationOptions build();

}
Expand Down
19 changes: 19 additions & 0 deletions api/src/main/java/jakarta/enterprise/event/ObserverException.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,37 @@ public class ObserverException extends RuntimeException {

private static final long serialVersionUID = -801836224808304381L;

/**
* Default ctor
*/
public ObserverException() {

}

/**
* Create exception with given message
*
* @param message - context information
*/
public ObserverException(String message) {
super(message);
}

/**
* Create exception with given cause
*
* @param cause - cause of exception
*/
public ObserverException(Throwable cause) {
super(cause);
}

/**
* Create exception with given message and cause
*
* @param message - context information
* @param cause - cause of exception
*/
public ObserverException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
* @since 2.0
*/
public final static class Literal extends AnnotationLiteral<Alternative> implements Alternative {

/** Default Alternative literal */
public static final Literal INSTANCE = new Literal();

private static final long serialVersionUID = 1L;
Expand Down

0 comments on commit d0b981c

Please sign in to comment.