Replace duplicated literals with manifest constants.

This commit is contained in:
Mark H. Wood
2025-04-01 13:38:47 -04:00
parent fb91feaafe
commit 852549b1f1
9 changed files with 31 additions and 26 deletions

View File

@@ -594,7 +594,7 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
public void removeDSpaceLicense(Context context, Item item) throws SQLException, AuthorizeException, IOException {
// get all bundles with name "LICENSE" (these are the DSpace license
// bundles)
List<Bundle> bunds = getBundles(item, "LICENSE");
List<Bundle> bunds = getBundles(item, Constants.LICENSE_BUNDLE_NAME);
for (Bundle bund : bunds) {
// FIXME: probably serious troubles with Authorizations