Skip to content

Commit

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

Signed-off-by: Scott M Stark <[email protected]>
  • Loading branch information
starksm64 committed Feb 26, 2024
1 parent d9f95b4 commit d3e86c9
Show file tree
Hide file tree
Showing 44 changed files with 334 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,28 @@
* 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,34 @@ 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
16 changes: 16 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,34 @@ 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,34 @@ 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
11 changes: 10 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,28 @@
* @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
11 changes: 10 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,28 @@
* @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,34 @@ 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,25 @@ 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
16 changes: 16 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,34 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,33 @@ public class AmbiguousResolutionException extends ResolutionException {

private static final long serialVersionUID = -2132733164534544788L;

/**
* default ctor
*/
public AmbiguousResolutionException() {
}

/**
* Create exception with given message and cause
* @param message - context information
* @param throwable - cause of exception
*/
public AmbiguousResolutionException(String message, Throwable throwable) {
super(message, throwable);
}

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

/**
* Create exception with given cause
* @param throwable - cause of exception
*/
public AmbiguousResolutionException(Throwable throwable) {
super(throwable);
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/enterprise/inject/Any.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
* @see Event
*/
public static final class Literal extends AnnotationLiteral<Any> implements Any {

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

private static final long serialVersionUID = 1L;
Expand Down
Loading

0 comments on commit d3e86c9

Please sign in to comment.