2727// This is not a resource class because it doesn't have a @Path annotation.
2828// Note that inheritance of class or interface annotations is not supported in
2929// JAX-RS.
30- public class JakartaRs4 implements JakartaRsInterface {
31- public JakartaRs4 () {
30+ public class JakartaRs4 implements JakartaRsInterface { // $ RootResourceClass
31+ public JakartaRs4 () { // $ InjectableConstructor
3232 }
3333
3434 @ Override
35- public int Get () { // $ ResourceMethod
36- return 1 ;
35+ public int Get () { // $ ResourceMethod ResourceMethodOnResourceClass
36+ return 1 ; // $ XssSink
3737 }
3838
3939 @ Override
40- public void Post () { // $ ResourceMethod
40+ public void Post () { // $ ResourceMethod ResourceMethodOnResourceClass
4141 }
4242
4343 @ Produces ("application/json" ) // $ ProducesAnnotation=application/json
@@ -52,11 +52,11 @@ public void Put() { // not a resource method because it has a jax-rs annotation,
5252 }
5353
5454 @ Override
55- public void Options () { // $ ResourceMethod
55+ public void Options () { // $ ResourceMethod ResourceMethodOnResourceClass
5656 }
5757
5858 @ Override
59- public void Head () { // $ ResourceMethod
59+ public void Head () { // $ ResourceMethod ResourceMethod ResourceMethodOnResourceClass
6060 }
6161
6262
@@ -65,21 +65,21 @@ NonRootResourceClassJakarta subResourceLocator() {
6565 return null ;
6666 }
6767
68- public class NonRootResourceClassJakarta {
68+ public class NonRootResourceClassJakarta { // $ NonRootResourceClass
6969 @ GET
70- int Get () { // $ ResourceMethod
71- return 0 ;
70+ int Get () { // $ ResourceMethod ResourceMethodOnResourceClass
71+ return 0 ; // $ XssSink
7272 }
7373
7474 @ Produces ("text/html" ) // $ ProducesAnnotation=text/html
7575 @ POST
76- boolean Post () { // $ ResourceMethod=text/html
77- return false ;
76+ boolean Post () { // $ ResourceMethod=text/html ResourceMethodOnResourceClass
77+ return false ; // $ XssSink
7878 }
7979
8080 @ Produces (MediaType .TEXT_PLAIN ) // $ ProducesAnnotation=text/plain
8181 @ DELETE
82- double Delete () { // $ ResourceMethod=text/plain
82+ double Delete () { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
8383 return 0.0 ;
8484 }
8585
@@ -90,13 +90,13 @@ AnotherNonRootResourceClassJakarta subResourceLocator1() { // $ SubResourceLocat
9090
9191 @ GET
9292 @ Path ("" )
93- NotAResourceClass1Jakarta NotASubResourceLocator1 () { // $ ResourceMethod
94- return null ; //
93+ NotAResourceClass1Jakarta NotASubResourceLocator1 () { // $ ResourceMethod ResourceMethodOnResourceClass
94+ return null ; // $ XssSink
9595 }
9696
9797 @ GET
98- NotAResourceClass2Jakarta NotASubResourceLocator2 () { // $ ResourceMethod
99- return null ; //
98+ NotAResourceClass2Jakarta NotASubResourceLocator2 () { // $ ResourceMethod ResourceMethodOnResourceClass
99+ return null ; // $ XssSink
100100 }
101101
102102 NotAResourceClass2Jakarta NotASubResourceLocator3 () {
0 commit comments