Skip to content

Commit

Permalink
[JENKINS-50204] Use UnsupportedException instead of NotImplementedExc…
Browse files Browse the repository at this point in the history
…eption
  • Loading branch information
agentgonzo committed Apr 12, 2018
1 parent 0e4ab09 commit a5f6ccb
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -4,7 +4,6 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import org.acegisecurity.Authentication;
import org.apache.commons.lang.NotImplementedException;
import org.jenkins.ui.icon.Icon;
import org.jenkins.ui.icon.IconSet;
import org.jenkins.ui.icon.IconType;
Expand Down Expand Up @@ -48,18 +47,18 @@ public List<Credentials> getCredentials(@NonNull Domain domain) {

@Override
public boolean addCredentials(@NonNull Domain domain, @NonNull Credentials credentials) {
throw new NotImplementedException();
throw new UnsupportedOperationException();
}

@Override
public boolean removeCredentials(@NonNull Domain domain, @NonNull Credentials credentials) {
throw new NotImplementedException();
throw new UnsupportedOperationException();
}

@Override
public boolean updateCredentials(@NonNull Domain domain, @NonNull Credentials current,
@NonNull Credentials replacement) {
throw new NotImplementedException();
throw new UnsupportedOperationException();
}

@Nullable
Expand Down

0 comments on commit a5f6ccb

Please sign in to comment.