Skip to content

ASTConveter javadoc pending tests for the snippet tag #5035

@subyssurendran666

Description

@subyssurendran666

Snippet tag was introduced in java18 and some of the scenarios covered in the ASTConverterJavadocTest_18. The remaining scenarios are following.

  1. Empty Body

{@snippet :
}
  1. Single Element

{@snippet :
int a = 10; 
}
  1. Multi-line plain code

{@snippet :
  int a = 1;
  int b = 2;
}
  1. Blank line inside body

{@snippet :

int a = 1;

int b = 2;
}
  1. Multiple attribute

{@snippet id="x1" lang=java region="main" :
  int a;
}
  1. Single quote attributes

{@snippet id='demo' lang='java' :
  int a;
}
  1. Nested blocks

{@snippet :
  if (a) {
     while (b) {
        foo();
     }
  }
}
  1. {@code} inside snippet (here code tag will treat as plain text)

{@snippet :
 {@code int a = 0;}
}
  1. Replace tag

{@snippet :
System.out.println("abc"); // @replace substring="abc" replacement="xyz"
}
  1. Link tag

{@snippet : 
  System.out.println("abc"); //@link substring="System" target="System"
 }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions