File tree Expand file tree Collapse file tree
de/uni_stuttgart/ils/reqif4j/specification Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,11 +130,7 @@ public boolean isText() {
130130 }
131131
132132 public List <SpecHierarchy > getChildren () {
133-
134- List <SpecHierarchy > children = new ArrayList <SpecHierarchy >();
135- children .add ((SpecHierarchy ) this .children .values ());
136-
137- return children ;
133+ return new ArrayList <SpecHierarchy >(this .children .values ());
138134 }
139135
140136 public List <SpecHierarchy > getAllChildren () {
Original file line number Diff line number Diff line change @@ -75,10 +75,7 @@ public int getNumberOfSections() {
7575
7676 public List <SpecHierarchy > getChildren () {
7777
78- List <SpecHierarchy > children = new ArrayList <SpecHierarchy >();
79- children .add ((SpecHierarchy ) this .children .values ());
80-
81- return children ;
78+ return new ArrayList <SpecHierarchy >(this .children .values ());
8279 }
8380
8481 public List <SpecObject > getLvlOneSpecHierarchies () {
You can’t perform that action at this time.
0 commit comments