diff --git a/src/main/java/io/wcm/handler/media/spi/MediaFormatProvider.java b/src/main/java/io/wcm/handler/media/spi/MediaFormatProvider.java index 7f9f887a..c3b0c8a3 100644 --- a/src/main/java/io/wcm/handler/media/spi/MediaFormatProvider.java +++ b/src/main/java/io/wcm/handler/media/spi/MediaFormatProvider.java @@ -89,7 +89,7 @@ private static Set getMediaFormatsFromPublicFields(Class type) { * @deprecated Prevent finalize attack (PMD CT_CONSTRUCTOR_THROW / SEI CERT Rule OBJ-11) */ @Override - @SuppressWarnings({ "PMD.EmptyFinalizer", "checkstyle:SuperFinalize", "checkstyle:NoFinalizerCheck" }) + @SuppressWarnings({ "PMD.EmptyFinalizer", "checkstyle:SuperFinalize", "checkstyle:NoFinalizerCheck", "java:S1113" }) @Deprecated(since = "2.0.0") protected final void finalize() { // do nothing diff --git a/src/main/java/io/wcm/handler/mediasource/dam/impl/RenditionMetadata.java b/src/main/java/io/wcm/handler/mediasource/dam/impl/RenditionMetadata.java index 5f946b26..753ffdbd 100644 --- a/src/main/java/io/wcm/handler/mediasource/dam/impl/RenditionMetadata.java +++ b/src/main/java/io/wcm/handler/mediasource/dam/impl/RenditionMetadata.java @@ -411,7 +411,7 @@ else if (type == InputStream.class) { * @deprecated Prevent finalize attack (PMD CT_CONSTRUCTOR_THROW / SEI CERT Rule OBJ-11) */ @Override - @SuppressWarnings({ "PMD.EmptyFinalizer", "checkstyle:SuperFinalize", "checkstyle:NoFinalizerCheck" }) + @SuppressWarnings({ "PMD.EmptyFinalizer", "checkstyle:SuperFinalize", "checkstyle:NoFinalizerCheck", "java:S1113" }) @Deprecated(since = "2.0.0") protected final void finalize() { // do nothing