mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-21 15:55:40 +00:00
Suppress NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD SpotBugs violation (#6131)
This commit is contained in:
1 parent
85df6000a7
commit
4d227779c6
2 files changed
+6
-5
No files matched your search
+6
-1
@@ -161,7 +161,12 @@ public class LegacyApiTokenAdministrativeMonitor extends AdministrativeMonitor {
|
||||
}
|
||||
|
||||
@RequirePOST
|
||||
@SuppressFBWarnings(value = "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", justification = "written to by Stapler")
|
||||
@SuppressFBWarnings(
|
||||
value = {
|
||||
"NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD",
|
||||
"UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD"
|
||||
},
|
||||
justification = "written to by Stapler")
|
||||
public HttpResponse doRevokeAllSelected(@JsonBody RevokeAllSelectedModel content) throws IOException {
|
||||
for (RevokeAllSelectedUserAndUuid value : content.values) {
|
||||
if (value.userId == null) {
|
||||
|
||||
Reference in new issue
Block a user