diff --git a/scm-core/src/main/java/sonia/scm/security/NotPublicKeyException.java b/scm-core/src/main/java/sonia/scm/security/NotPublicKeyException.java index 48a68b17bc..3d8775a09a 100644 --- a/scm-core/src/main/java/sonia/scm/security/NotPublicKeyException.java +++ b/scm-core/src/main/java/sonia/scm/security/NotPublicKeyException.java @@ -29,7 +29,7 @@ import sonia.scm.ContextEntry; import java.util.List; -@SuppressWarnings("squid:S110") +@SuppressWarnings("squid:MaximumInheritanceDepth") // exceptions have a deep inheritance depth themselves; therefore we accept this here public class NotPublicKeyException extends BadRequestException { public NotPublicKeyException(List context, String message) { super(context, message); diff --git a/scm-webapp/src/main/java/sonia/scm/security/gpg/DeletingReadonlyKeyNotAllowedException.java b/scm-webapp/src/main/java/sonia/scm/security/gpg/DeletingReadonlyKeyNotAllowedException.java index 4b1d37c35a..b559801116 100644 --- a/scm-webapp/src/main/java/sonia/scm/security/gpg/DeletingReadonlyKeyNotAllowedException.java +++ b/scm-webapp/src/main/java/sonia/scm/security/gpg/DeletingReadonlyKeyNotAllowedException.java @@ -27,7 +27,7 @@ package sonia.scm.security.gpg; import sonia.scm.BadRequestException; import sonia.scm.ContextEntry; -@SuppressWarnings("squid:S110") +@SuppressWarnings("squid:MaximumInheritanceDepth") // exceptions have a deep inheritance depth themselves; therefore we accept this here public final class DeletingReadonlyKeyNotAllowedException extends BadRequestException { public DeletingReadonlyKeyNotAllowedException(String keyId) {