Fix checkstyle. Correct grammar of comment while doing so.

This commit is contained in:
Tim Donohue
2023-09-13 12:28:55 -05:00
parent 1271374d37
commit ffa2683c63

View File

@@ -182,10 +182,10 @@ public class VersionedHandleIdentifierProviderWithCanonicalHandles extends Ident
try { try {
if (dso instanceof Item) { if (dso instanceof Item) {
Item item = (Item) dso; Item item = (Item) dso;
// if for this identifier is already present a record in the Handle table and the corresponding item // if this identifier is already present in the Handle table and the corresponding item
// has an history someone is trying to restore the latest version for the item. When // has a history, then someone is trying to restore the latest version for the item. When
// trying to restore the latest version the identifier in input doesn't have the for 1234/123.latestVersion // trying to restore the latest version, the identifier in input doesn't have the
// it is the canonical 1234/123 // 1234/123.latestVersion. Instead, it is the canonical 1234/123
VersionHistory itemHistory = getHistory(context, identifier); VersionHistory itemHistory = getHistory(context, identifier);
if (!identifier.matches(".*/.*\\.\\d+") && itemHistory != null) { if (!identifier.matches(".*/.*\\.\\d+") && itemHistory != null) {