Skip to content

Commit

Permalink
Disambiguate StringTemplate
Browse files Browse the repository at this point in the history
Fixes maven javadoc error "both class
org.eclipse.jdt.internal.compiler.ast.StringTemplate in
org.eclipse.jdt.internal.compiler.ast and interface
java.lang.StringTemplate in java.lang match" as can be seen at
https://ci.eclipse.org/platform/job/eclipse.platform.releng.aggregator/job/master/2149/console
  • Loading branch information
akurtakov committed Mar 25, 2024
1 parent 815822f commit 76082af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2023 IBM Corporation and others.
* Copyright (c) 2000, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -1019,7 +1019,7 @@ public boolean visit(SwitchExpression switchExpression, BlockScope blockScope) {
public boolean visit(RecordComponent recordComponent, BlockScope scope) {
return true; // do nothing by default, keep traversing
}
public boolean visit(StringTemplate expr, BlockScope scope1) {
public boolean visit(org.eclipse.jdt.internal.compiler.ast.StringTemplate expr, BlockScope scope1) {
// TODO Auto-generated method stub
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public boolean visit(StringLiteralConcatenation literal, BlockScope scope) {
}

@Override
public boolean visit(StringTemplate expr, BlockScope scope1) {
public boolean visit(org.eclipse.jdt.internal.compiler.ast.StringTemplate expr, BlockScope scope1) {
return visitNode(expr);
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import org.eclipse.jdt.internal.compiler.ASTVisitor;
import org.eclipse.jdt.internal.compiler.CompilationResult;
import org.eclipse.jdt.internal.compiler.ast.*;
import org.eclipse.jdt.internal.compiler.ast.StringTemplate;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
import org.eclipse.jdt.internal.compiler.codegen.ConstantPool;
import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
Expand Down

0 comments on commit 76082af

Please sign in to comment.