Skip to content

Commit

Permalink
Update API since tag for the new APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoming Jia committed Oct 27, 2020
1 parent 4cbb9e8 commit 26f927c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/com/google/inject/Key.java
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public <U> Key<U> ofType(TypeLiteral<U> type) {
* <p>This is equivalent to {@code Key.get(key.getTypeLiteral(), annotation)} but may be more
* convenient to use in certain cases.
*
* @since vNext
* @since 5.0
*/
public Key<T> withAnnotation(Class<? extends Annotation> annotationType) {
return new Key<T>(typeLiteral, strategyFor(annotationType));
Expand All @@ -308,7 +308,7 @@ public Key<T> withAnnotation(Class<? extends Annotation> annotationType) {
* <p>This is equivalent to {@code Key.get(key.getTypeLiteral(), annotation)} but may be more
* convenient to use in certain cases.
*
* @since vNext
* @since 5.0
*/
public Key<T> withAnnotation(Annotation annotation) {
return new Key<T>(typeLiteral, strategyFor(annotation));
Expand Down
4 changes: 2 additions & 2 deletions core/src/com/google/inject/spi/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public final class Message implements Serializable, Element {
private final ErrorId errorId;
private final ErrorDetail<?> errorDetail;

/** @since vNext */
/** @since 5.0 */
public Message(GuiceInternal internalOnly, ErrorId errorId, ErrorDetail<?> errorDetail) {
checkNotNull(internalOnly);
this.errorId = errorId;
Expand Down Expand Up @@ -87,7 +87,7 @@ public Message(String message) {
/**
* Returns details about this error message.
*
* @since vNext
* @since 5.0
*/
public ErrorDetail<?> getErrorDetail() {
return errorDetail;
Expand Down

0 comments on commit 26f927c

Please sign in to comment.