diff options
author | Keuin <[email protected]> | 2021-01-24 20:01:17 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-24 20:01:17 +0800 |
commit | 5063ab12c48a6612d903c44c943230b6c323f602 (patch) | |
tree | 38ad6cf5f48377142a1d2fabfb1122eb9a681421 /src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java | |
parent | dfd27f1a01a612c39bc17cac9793c80cc9b72e6b (diff) |
Code refactor: eliminate unnecessary instance creation of IncrementalBackupFileNameEncoder
Diffstat (limited to 'src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java')
-rw-r--r-- | src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java b/src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java index d50b264..3de75b9 100644 --- a/src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java +++ b/src/test/java/com/keuin/kbackupfabric/backup/incremental/serializer/IncBakupBackwardCompatibilityTest.java @@ -22,7 +22,7 @@ public class IncBakupBackwardCompatibilityTest { private final LocalDateTime backupTime = LocalDateTime.of(2000, 1, 1, 1, 1, 1, 1); private final Path testRoot = Paths.get(".\\testfile\\IncBackupBackwardCompatibilityTest"); - private final File indexFile = new File(testRoot.toString(), new IncrementalBackupFileNameEncoder().encode(customName, backupTime)); + private final File indexFile = new File(testRoot.toString(), IncrementalBackupFileNameEncoder.INSTANCE.encode(customName, backupTime)); @Test public void testBackwardCompatibility() throws IOException { |