Skip to content

Commit 96ac9b5

Browse files
committed
Manifest checker: test for different_case earlier (see #119)
This ensures that the test won’t flag the file it just added for any case where the filename isn’t already lowercased.
1 parent 0f8ec3f commit 96ac9b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/gov/loc/repository/bagit/conformance/ManifestChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ private static void checkManifestPayload(final Path manifestFile, final Charset
123123
String path = parsePath(line);
124124

125125
path = checkForManifestCreatedWithMD5SumTools(path, warnings, warningsToIgnore);
126-
paths.add(path.toLowerCase());
127-
128126
checkForDifferentCase(path, paths, manifestFile, warnings, warningsToIgnore);
127+
paths.add(path.toLowerCase());
128+
129129
if(encoding.name().startsWith("UTF")){
130130
checkNormalization(path, manifestFile.getParent(), warnings, warningsToIgnore);
131131
}

0 commit comments

Comments
 (0)