mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Clean up a lot of ErrorProne and Checkstyle warnings. #2983
So I can see what else is wrong.
This commit is contained in:
@@ -63,15 +63,10 @@ public class MetadataSchemaBuilder extends AbstractBuilder<MetadataSchema, Metad
|
||||
context.dispatchEvents();
|
||||
|
||||
indexingService.commit();
|
||||
} catch (SearchServiceException e) {
|
||||
} catch (SearchServiceException | SQLException | AuthorizeException e) {
|
||||
log.error(e);
|
||||
} catch (SQLException e) {
|
||||
log.error(e);
|
||||
} catch (AuthorizeException e) {
|
||||
log.error(e);
|
||||
;
|
||||
} catch (NonUniqueMetadataException e) {
|
||||
e.printStackTrace();
|
||||
log.error("Failed to complete MetadataSchema", e);
|
||||
}
|
||||
return metadataSchema;
|
||||
}
|
||||
@@ -101,7 +96,7 @@ public class MetadataSchemaBuilder extends AbstractBuilder<MetadataSchema, Metad
|
||||
MetadataSchema metadataSchema = metadataSchemaService.find(c, id);
|
||||
if (metadataSchema != null) {
|
||||
try {
|
||||
metadataSchemaService.delete(c, metadataSchema);
|
||||
metadataSchemaService.delete(c, metadataSchema);
|
||||
} catch (AuthorizeException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
@@ -123,7 +118,7 @@ public class MetadataSchemaBuilder extends AbstractBuilder<MetadataSchema, Metad
|
||||
try {
|
||||
metadataSchema = metadataSchemaService.create(context, name, namespace);
|
||||
} catch (NonUniqueMetadataException e) {
|
||||
e.printStackTrace();
|
||||
log.error("Failed to create MetadataSchema", e);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user