File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed
main/java/com/google/api/generator/engine/writer
test/java/com/google/api/generator/engine/writer Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ public void visit(TernaryExpr ternaryExpr) {
183183 @ Override
184184 public void visit (VariableExpr variableExpr ) {
185185 variableExpr .variable ().type ().accept (this );
186- annotations (variableExpr .annotations ());
187186 if (variableExpr .exprReferenceExpr () != null ) {
188187 variableExpr .exprReferenceExpr ().accept (this );
189188 }
Original file line number Diff line number Diff line change @@ -363,32 +363,6 @@ public void writeVariableExprImports_nestedReference() {
363363 writerVisitor .write ());
364364 }
365365
366- @ Test
367- public void writeVariableExprImports_withAnnotations () {
368- Variable variable =
369- Variable .builder ()
370- .setName ("expr" )
371- .setType (TypeNode .withReference (ConcreteReference .withClazz (Expr .class )))
372- .build ();
373-
374- VariableExpr variableExpr =
375- VariableExpr .builder ()
376- .setVariable (variable )
377- .setIsDecl (true )
378- .setAnnotations (
379- Arrays .asList (
380- AnnotationNode .withType (
381- TypeNode .withReference (ConcreteReference .withClazz (Generated .class )))))
382- .build ();
383-
384- variableExpr .accept (writerVisitor );
385- assertEquals (
386- LineFormatter .lines (
387- "import com.google.api.generator.engine.ast.Expr;\n " ,
388- "import javax.annotation.Generated;\n \n " ),
389- writerVisitor .write ());
390- }
391-
392366 @ Test
393367 public void writeAnonymousClassExprImports () {
394368 // [Constructing] Function<List<IOException>, MethodDefinition>
You can’t perform that action at this time.
0 commit comments