Skip to content
Permalink
Browse files

Improved: Remove redundant type declarations

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 83aad257be9e3e64cc8f58057ba2266a06b638fc
@@ -40,7 +40,7 @@
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) {
@@ -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()) {

0 comments on commit 83aad25

Please sign in to comment.
You can’t perform that action at this time.