File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,16 +181,22 @@ public CFGExtractor(ASTExtractor astExtractor) {
181181 this .metrics = astExtractor .getMetrics ();
182182 }
183183
184+ /**
185+ * Creates an `Iterable<Node>` from the one-or-more nodes contained in `nodes`.
186+ */
184187 @ SuppressWarnings ("unchecked" )
185- private static Iterable <Node > createIterable (Object nd ) {
186- if (nd == null ) return Collections .<Node >emptySet ();
187- if (nd instanceof Node ) return CollectionUtil .singletonIterable ((Node ) nd );
188- return (Iterable <Node >) nd ;
188+ private static Iterable <Node > createIterable (Object nodes ) {
189+ if (nodes == null ) return Collections .<Node >emptySet ();
190+ if (nodes instanceof Node ) return CollectionUtil .singletonIterable ((Node ) nodes );
191+ return (Iterable <Node >) nodes ;
189192 }
190193
191- private Iterable <Node > createReversedIterable (final Object nd ) {
194+ /**
195+ * Creates an `Iterable<Node>` that iterates the nodes in reverse order from the one-or-more nodes contained in `nodes`.
196+ */
197+ private Iterable <Node > createReversedIterable (final Object nodes ) {
192198 List <Node > list = new ArrayList <>();
193- createIterable (nd ).forEach (list ::add );
199+ createIterable (nodes ).forEach (list ::add );
194200 Collections .reverse (list );
195201 return list ;
196202 }
You can’t perform that action at this time.
0 commit comments