checkstyle fix

This commit is contained in:
Terry Brady
2018-08-03 17:47:31 -07:00
parent 77d67537f7
commit 220c8a5a48
2 changed files with 2 additions and 2 deletions

View File

@@ -412,7 +412,7 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
protected void populateHandleMetadata(Context context, Item item, String handle) protected void populateHandleMetadata(Context context, Item item, String handle)
throws SQLException, IOException, AuthorizeException { throws SQLException, IOException, AuthorizeException {
String handleref = handleService.getCanonicalForm(handle); String handleref = handleService.getCanonicalForm(handle);
// we want to remove the old handle and insert the new. To do so, we // we want to remove the old handle and insert the new. To do so, we
// load all identifiers, clear the metadata field, re add all // load all identifiers, clear the metadata field, re add all
// identifiers which are not from type handle and add the new handle. // identifiers which are not from type handle and add the new handle.

View File

@@ -490,7 +490,7 @@ public class VersionedHandleIdentifierProviderWithCanonicalHandles extends Ident
// we want to exchange the old handle against the new one. To do so, we // we want to exchange the old handle against the new one. To do so, we
// load all identifiers, clear the metadata field, re add all // load all identifiers, clear the metadata field, re add all
// identifiers which are not from type handle and add the new handle. // identifiers which are not from type handle and add the new handle.
String handleref = handleService.getCanonicalForm(handle); String handleref = handleService.getCanonicalForm(handle);
List<MetadataValue> identifiers = itemService List<MetadataValue> identifiers = itemService
.getMetadata(item, MetadataSchema.DC_SCHEMA, "identifier", "uri", Item.ANY); .getMetadata(item, MetadataSchema.DC_SCHEMA, "identifier", "uri", Item.ANY);
itemService.clearMetadata(context, item, MetadataSchema.DC_SCHEMA, "identifier", "uri", Item.ANY); itemService.clearMetadata(context, item, MetadataSchema.DC_SCHEMA, "identifier", "uri", Item.ANY);