mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Allow jax-rs path annotation inheritance
This commit is contained in:
@@ -156,12 +156,12 @@ class NotAResourceClass1 {
|
||||
class NotAResourceClass2 {
|
||||
}
|
||||
|
||||
class ExtendsJaxRs1 extends JaxRs1 {
|
||||
class ExtendsJaxRs1 extends JaxRs1 { // $ RootResourceClass
|
||||
@Override
|
||||
int Get() { // $ ResourceMethod
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@QueryParam("") // $ InjectionAnnotation
|
||||
void Post() {
|
||||
@@ -189,12 +189,12 @@ class ExtendsJaxRs1 extends JaxRs1 {
|
||||
}
|
||||
|
||||
@Produces(MediaType.TEXT_XML) // $ ProducesAnnotation=text/xml
|
||||
class ExtendsJaxRs1WithProducesAnnotation extends JaxRs1 {
|
||||
class ExtendsJaxRs1WithProducesAnnotation extends JaxRs1 { // Not a root resource class because it has a JAX-RS annotation
|
||||
@Override
|
||||
int Get() { // $ ResourceMethod=text/xml
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@QueryParam("") // $ InjectionAnnotation
|
||||
void Post() {
|
||||
@@ -212,4 +212,4 @@ class ExtendsJaxRs1WithProducesAnnotation extends JaxRs1 {
|
||||
@Override
|
||||
void Options() { // $ ResourceMethod=text/xml
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user