summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/util/backup/name
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-13 14:32:08 +0800
committerkeuin <[email protected]>2021-01-13 14:32:08 +0800
commit2bc659d8f95a97d0514491e48ed9c66828a4e308 (patch)
tree202962a05caadf652ec117812cc6704ea64d001c /src/main/java/com/keuin/kbackupfabric/util/backup/name
parent1c6d68ee303ad3d4b1df5c3d433bf972256f0c8e (diff)
BackupMethod now becomes stateful
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/util/backup/name')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/util/backup/name/IncrementalBackupFileNameEncoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/util/backup/name/IncrementalBackupFileNameEncoder.java b/src/main/java/com/keuin/kbackupfabric/util/backup/name/IncrementalBackupFileNameEncoder.java
index ae54930..a0d4128 100644
--- a/src/main/java/com/keuin/kbackupfabric/util/backup/name/IncrementalBackupFileNameEncoder.java
+++ b/src/main/java/com/keuin/kbackupfabric/util/backup/name/IncrementalBackupFileNameEncoder.java
@@ -9,6 +9,10 @@ public class IncrementalBackupFileNameEncoder implements BackupFileNameEncoder {
private static final String backupFileNamePrefix = "incremental-";
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH-mm-ss");
+ // TODO: make this private and use singleton pattern
+ public IncrementalBackupFileNameEncoder() {
+ }
+
@Override
public String encode(String customName, LocalDateTime time) {
if (!isValidCustomName(customName))