@@ -195,22 +195,22 @@ private static Iterable<Node> createIterable(Object nodes) {
195
195
/**
196
196
* Creates an `Iterable<Node>` that iterates the nodes in reverse order from the one-or-more nodes contained in `nodes`.
197
197
*/
198
- private Iterable <Node > createReversedIterable (final Object nodes ) {
198
+ private static Iterable <Node > createReversedIterable (final Object nodes ) {
199
199
List <Node > list = new ArrayList <>();
200
200
createIterable (nodes ).forEach (list ::add );
201
201
Collections .reverse (list );
202
202
return list ;
203
203
}
204
204
205
205
/** Returns a list of all the nodes in a tree of nested lists. */
206
- private List <Node > flattenNestedList (Iterable <?> lists ) {
206
+ private static List <Node > flattenNestedList (Iterable <?> lists ) {
207
207
return flattenNestedList (lists , new ArrayList <>());
208
208
}
209
209
210
210
/**
211
211
* Appends all the nodes in a tree of nested lists the given output list, and returns that list.
212
212
*/
213
- private List <Node > flattenNestedList (Iterable <?> lists , List <Node > output ) {
213
+ private static List <Node > flattenNestedList (Iterable <?> lists , List <Node > output ) {
214
214
for (Object object : lists ) {
215
215
if (object == null ) continue ;
216
216
if (object instanceof Node ) {
@@ -226,7 +226,7 @@ private List<Node> flattenNestedList(Iterable<?> lists, List<Node> output) {
226
226
227
227
/**
228
228
* Creates an order preserving concatenation of the nodes in `xs` and `ys` without duplicates.
229
- * Returns `null`, or an `INode ` or a `List<Node>`.
229
+ * Returns `null`, or an `Node ` or a `List<Node>`.
230
230
*/
231
231
private static Object union (Object xs , Object ys ) {
232
232
if (xs == null ) return ys ;
0 commit comments