Skip to content

Commit b16328d

Browse files
committed
fixing PMD error
1 parent 04e8d5d commit b16328d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gov/loc/repository/bagit/creator/BagCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private static Bag bagInPlace(final Version version, final Path root, final Coll
137137

138138
private static void moveDataFilesIfNeeded(final Bag bag, final boolean includeHidden) throws IOException {
139139
if(bag.getVersion().isOlder(DOT_BAGIT_VERSION)) {
140-
Path tempDir = bag.getRootDir().resolve(System.currentTimeMillis() + ".temp");
140+
final Path tempDir = bag.getRootDir().resolve(System.currentTimeMillis() + ".temp");
141141
Files.createDirectory(tempDir);
142142
moveDataFiles(bag.getRootDir(), tempDir, includeHidden);
143143
Files.move(tempDir, PathUtils.getDataDir(bag));

0 commit comments

Comments
 (0)