Refactor: Make NotificationDecoration an Interface
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 18s

This commit is contained in:
Namu
2025-10-06 11:37:56 +02:00
parent b841c81599
commit 5b1619f34e
3 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ package notificationsDecorations;
import java.util.Date;
public class DateNotificationDecoration extends NotificationDecoration {
public class DateNotificationDecoration implements NotificationDecoration {
private final Date date;
public DateNotificationDecoration(Date date) {

View File

@@ -1,6 +1,6 @@
package notificationsDecorations;
public abstract class NotificationDecoration {
public interface NotificationDecoration {
/**
* Each decoration apply a transformation on the content of the Notifications
* @return the content transformed

View File

@@ -1,6 +1,6 @@
package notificationsDecorations;
public class WatermarkNotificationDecoration extends NotificationDecoration {
public class WatermarkNotificationDecoration implements NotificationDecoration {
private final String waterMark;
public WatermarkNotificationDecoration(String waterMark) {