Skip to content
Permalink
Browse files
Merge pull request #17 from Evildethow/JENKINS-40577
JENKINS-40577 - Removed guava import

thanks @Evildethow
  • Loading branch information
escoem committed Jun 9, 2017
2 parents af1ca11 + 1a5e9fb commit 6b3cb8baf2c41db82b203c647a835e2e3ba8148a
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/main/java/org/jenkins/ci/plugins/jobimport/CredentialsUtils.java
@@ -11,8 +11,6 @@
import java.util.Collections;
import java.util.List;

import static com.google.inject.internal.guava.base.$Preconditions.checkNotNull;

/**
* Created by evildethow on 28/06/2016.
*/
@@ -55,5 +53,13 @@ static final class NullSafeCredentials {
this.username = "";
this.password = "";
}

private <T> T checkNotNull(T reference) {
if(reference == null) {
throw new NullPointerException();
} else {
return reference;
}
}
}
}

0 comments on commit 6b3cb8b

Please sign in to comment.