【fix sonar】 TreeModel.java文件
This commit is contained in:
+3
-3
@@ -93,7 +93,7 @@ public class TreeModel implements Serializable {
|
|||||||
this.isLeaf = permission.isLeaf();
|
this.isLeaf = permission.isLeaf();
|
||||||
this.label = permission.getName();
|
this.label = permission.getName();
|
||||||
if(!permission.isLeaf()) {
|
if(!permission.isLeaf()) {
|
||||||
this.children = new ArrayList<TreeModel>();
|
this.children = new ArrayList<>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,13 +102,13 @@ public class TreeModel implements Serializable {
|
|||||||
this.parentId = parentId;
|
this.parentId = parentId;
|
||||||
this.ruleFlag=ruleFlag;
|
this.ruleFlag=ruleFlag;
|
||||||
this.slotTitle = slotTitle;
|
this.slotTitle = slotTitle;
|
||||||
Map<String,String> map = new HashMap<String,String>();
|
Map<String,String> map = new HashMap<>();
|
||||||
map.put("title", "hasDatarule");
|
map.put("title", "hasDatarule");
|
||||||
this.scopedSlots = map;
|
this.scopedSlots = map;
|
||||||
this.isLeaf = isLeaf;
|
this.isLeaf = isLeaf;
|
||||||
this.value = key;
|
this.value = key;
|
||||||
if(!isLeaf) {
|
if(!isLeaf) {
|
||||||
this.children = new ArrayList<TreeModel>();
|
this.children = new ArrayList<>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user