Commit d9814fcb5c7543df7dd4dd5b3f30323dad724446

Authored by Steven Glover
1 parent a93188af99
Exists in master

Minor code cleanup

src/main/java/org/alfresco/trashcan/TrashcanCleaner.java
... ... @@ -121,7 +121,7 @@ public class TrashcanCleaner
121 121 private List<NodeRef> getBatchToDelete()
122 122 {
123 123 List<ChildAssociationRef> childAssocs = getTrashcanChildAssocs();
124   - List<NodeRef> nodes = new ArrayList<NodeRef>(deleteBatchCount);
  124 + List<NodeRef> nodes = new ArrayList<>(deleteBatchCount);
125 125 if (logger.isDebugEnabled())
126 126 {
127 127 logger.debug(String.format("Found %s nodes on trashcan", childAssocs.size()));
... ... @@ -179,7 +179,7 @@ public class TrashcanCleaner
179 179 */
180 180 private List<ChildAssociationRef> filterArchiveUsers(List<ChildAssociationRef> allChilds)
181 181 {
182   - List<ChildAssociationRef> children = new ArrayList<ChildAssociationRef>();
  182 + List<ChildAssociationRef> children = new ArrayList<>();
183 183 for (ChildAssociationRef childAssoc : allChilds)
184 184 {
185 185 NodeRef child = childAssoc.getChildRef();
... ... @@ -246,6 +246,7 @@ public class TrashcanCleaner
246 246 {
247 247 RetryingTransactionCallback<Void> txnWork = new RetryingTransactionCallback<Void>()
248 248 {
  249 + @Override
249 250 public Void execute() throws Exception
250 251 {
251 252 List<NodeRef> nodes = getBatchToDelete();
... ...