mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Java: Remove MISSING: XssSink annotations from text/plain responses in JaxWs
This commit is contained in:
@@ -41,7 +41,7 @@ public class JakartaRs1 { // $ RootResourceClass
|
||||
@Produces("text/plain") // $ ProducesAnnotation=text/plain
|
||||
@DELETE
|
||||
double Delete() { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
|
||||
return 0.0; // $ MISSING: XssSink
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@Produces(MediaType.TEXT_HTML) // $ ProducesAnnotation=text/html
|
||||
@@ -77,7 +77,7 @@ public class JakartaRs1 { // $ RootResourceClass
|
||||
@Produces(MediaType.TEXT_PLAIN) // $ ProducesAnnotation=text/plain
|
||||
@DELETE
|
||||
double Delete() { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
|
||||
return 0.0; // $ MISSING: XssSink
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@Path("")
|
||||
|
||||
@@ -41,7 +41,7 @@ public class JaxRs1 { // $ RootResourceClass
|
||||
@Produces("text/plain") // $ ProducesAnnotation=text/plain
|
||||
@DELETE
|
||||
double Delete() { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
|
||||
return 0.0; // $ MISSING: XssSink
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@Produces(MediaType.TEXT_HTML) // $ ProducesAnnotation=text/html
|
||||
@@ -77,7 +77,7 @@ public class JaxRs1 { // $ RootResourceClass
|
||||
@Produces(MediaType.TEXT_PLAIN) // $ ProducesAnnotation=text/plain
|
||||
@DELETE
|
||||
double Delete() { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
|
||||
return 0.0; // $ MISSING: XssSink
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@Path("")
|
||||
|
||||
Reference in New Issue
Block a user