svn commit: r1866786 - in /ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service: ModelPermGroup.java ModelService.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1866786 - in /ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service: ModelPermGroup.java ModelService.java

mthl
Author: mthl
Date: Wed Sep 11 09:20:03 2019
New Revision: 1866786

URL: http://svn.apache.org/viewvc?rev=1866786&view=rev
Log:
Improved: Remove redundant type declarations

Modified:
    ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelPermGroup.java
    ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java

Modified: ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelPermGroup.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelPermGroup.java?rev=1866786&r1=1866785&r2=1866786&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelPermGroup.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelPermGroup.java Wed Sep 11 09:20:03 2019
@@ -40,7 +40,7 @@ public class ModelPermGroup implements S
     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) {

Modified: ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java?rev=1866786&r1=1866785&r2=1866786&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java Wed Sep 11 09:20:03 2019
@@ -1024,7 +1024,7 @@ public class ModelService extends Abstra
      * @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()) {