Skip to content

Commit

Permalink
Improved: Remove redundant type declarations
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866786 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Sep 11, 2019
1 parent 5f1fae8 commit 83aad25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ModelPermGroup implements Serializable {
public List<ModelPermission> permissions = new LinkedList<>();
public String joinType;
public Map<String, Object> evalPermissions(DispatchContext dctx, Map<String, ? extends Object> context) {
List<String> permissionErrors = new ArrayList<String>();
List<String> permissionErrors = new ArrayList<>();
if (UtilValidate.isNotEmpty(permissions)) {
boolean foundOne = false;
for (ModelPermission perm: permissions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ public void evalNotifications(DispatchContext dctx, Map<String, ? extends Object
* @return Map if all permissions evaluate return success else return the error message list.
*/
public Map<String, Object> evalPermissions(DispatchContext dctx, Map<String, ? extends Object> context) {
List<String> permGroupErrors = new ArrayList<String>();
List<String> permGroupErrors = new ArrayList<>();

// old permission checking
if (this.containsPermissions()) {
Expand Down

0 comments on commit 83aad25

Please sign in to comment.