Refactor: Make NotificationDecoration an Interface
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 18s
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 18s
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package notificationsDecorations;
|
||||
|
||||
public class WatermarkNotificationDecoration extends NotificationDecoration {
|
||||
public class WatermarkNotificationDecoration implements NotificationDecoration {
|
||||
private final String waterMark;
|
||||
|
||||
public WatermarkNotificationDecoration(String waterMark) {
|
||||
|
||||
Reference in New Issue
Block a user