Skip to content

Commit 67b36ea

Browse files
committed
fixing javadoc formatting
1 parent 27832c1 commit 67b36ea

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/main/java/gov/loc/repository/bagit/exceptions/InvalidFetchFormatException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Class to represent an error when the bag fetch file does not conform to the bagit spec,
55
* namely: <br>
66
* &lt;URL&gt; &lt;SIZE IN BYTES or -&gt; &lt;data/PATH/FILENAME&gt;
7-
* <br></pre>
7+
* <br>
88
*/
99
public class InvalidFetchFormatException extends Exception {
1010
private static final long serialVersionUID = 1L;

src/main/java/gov/loc/repository/bagit/exceptions/InvalidManifestFormatException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Class to represent an error when the bag manifest file does not conform to the bagit spec,
55
* namely: <br>
66
* &lt;CHECKSUM&gt; &lt;data/PATH/FILENAME&gt;
7-
* <br></pre>
7+
* <br>
88
*/
99
public class InvalidManifestFormatException extends Exception {
1010
private static final long serialVersionUID = 1L;

src/main/java/gov/loc/repository/bagit/verify/CheckIfFileExistsTask.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ public void run() {
3636
latch.countDown();
3737
}
3838

39+
/**
40+
* if a file is parially normalized or of a different normalization then the manifest specifies it will fail the existence test.
41+
* This method checks for that by normalizing what is on disk with the normalized filename and see if they match.
42+
*
43+
* @return true if the normalized filename matches one on disk in the specified folder
44+
*/
3945
private boolean existsNormalized(){
4046
final String normalizedFile = Normalizer.normalize(file.toString(), Normalizer.Form.NFD);
4147
final Path parent = file.getParent();

0 commit comments

Comments
 (0)