@@ -30,7 +30,6 @@ of this software and associated documentation files (the "Software"), to deal
30
30
import com .github .benmanes .caffeine .cache .Caffeine ;
31
31
import edu .umd .cs .findbugs .annotations .NonNull ;
32
32
import edu .umd .cs .findbugs .annotations .Nullable ;
33
- import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
34
33
import hudson .model .Item ;
35
34
import hudson .security .Permission ;
36
35
import hudson .security .SecurityRealm ;
@@ -183,12 +182,10 @@ public boolean isPrivate() {
183
182
}
184
183
}
185
184
186
- @ SuppressFBWarnings (value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" )
187
185
public GithubAuthenticationToken (final String accessToken , final String githubServer ) throws IOException {
188
186
this (accessToken , githubServer , false );
189
187
}
190
188
191
- @ SuppressFBWarnings (value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" )
192
189
public GithubAuthenticationToken (final String accessToken , final String githubServer , final boolean clearUserCache ) throws IOException {
193
190
super (List .of ());
194
191
@@ -374,7 +371,6 @@ public GHMyself getMyself() throws IOException {
374
371
* @return the Set of org names current user is a member of
375
372
*/
376
373
@ NonNull
377
- @ SuppressFBWarnings ("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" )
378
374
private Set <String > getUserOrgs () {
379
375
return userOrganizationCache .get (this .userName , unused -> {
380
376
try {
@@ -439,7 +435,6 @@ private boolean isReadRelatedPermission(@NonNull Permission permission) {
439
435
* @return [description]
440
436
*/
441
437
@ NonNull
442
- @ SuppressFBWarnings ("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" )
443
438
private Cache <String , RepoRights > myRepositories () {
444
439
return repositoriesByUserCache .get (this .userName , unused -> {
445
440
// listRepositories returns all repos owned by user, where they are a collaborator,
@@ -519,7 +514,6 @@ GHOrganization loadOrganization(@NonNull String organization) {
519
514
}
520
515
521
516
@ NonNull
522
- @ SuppressFBWarnings ("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" )
523
517
private RepoRights loadRepository (@ NonNull final String repositoryName ) {
524
518
try {
525
519
if (gh != null && isAuthenticated () && (myRealm .hasScope ("repo" ) || myRealm .hasScope ("public_repo" ))) {
0 commit comments