Skip to content

Commit

Permalink
Add @deprecated Javadoc tags
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Dec 20, 2023
1 parent 73a5b8f commit 7ea9705
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rewrite-java/src/main/java/org/openrewrite/java/tree/J.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public AnnotatedType withType(@Nullable JavaType type) {
return withTypeExpression(typeExpression.withType(type));
}

/**
* @deprecated Use {@link org.openrewrite.java.service.AnnotationService#getAllAnnotations(J)} instead.
*/
@Deprecated
public List<Annotation> getAllAnnotations() {
List<J.Annotation> allAnnotations = annotations;
Expand Down Expand Up @@ -1240,6 +1243,9 @@ public <P> J acceptJava(JavaVisitor<P> v, P p) {
return v.visitClassDeclaration(this, p);
}

/**
* @deprecated Use {@link org.openrewrite.java.service.AnnotationService#getAllAnnotations(J)} instead.
*/
@Deprecated
// gather annotations from everywhere they may occur
public List<J.Annotation> getAllAnnotations() {
Expand Down Expand Up @@ -3639,6 +3645,9 @@ public CoordinateBuilder.MethodDeclaration getCoordinates() {
return new CoordinateBuilder.MethodDeclaration(this);
}

/**
* @deprecated Use {@link org.openrewrite.java.service.AnnotationService#getAllAnnotations(J)} instead.
*/
@Deprecated
// gather annotations from everywhere they may occur
public List<J.Annotation> getAllAnnotations() {
Expand Down Expand Up @@ -5766,6 +5775,9 @@ public CoordinateBuilder.VariableDeclarations getCoordinates() {
return new CoordinateBuilder.VariableDeclarations(this);
}

/**
* @deprecated Use {@link org.openrewrite.java.service.AnnotationService#getAllAnnotations(J)} instead.
*/
@Deprecated
// gather annotations from everywhere they may occur
public List<J.Annotation> getAllAnnotations() {
Expand Down

0 comments on commit 7ea9705

Please sign in to comment.