@@ -102,8 +102,8 @@ public static Divided divide(Token[] equationPostfix, int order) {
102102 ExprNode topCoefficientSum = sumSigned (topTerms );
103103 ExprNode remainderSum = sumSigned (remainderTerms );
104104 ExprNode negatedRemainder = remainderSum == null
105- ? ExprNode .number (0.0 ) : ExprNode .op ('-' , List . of (remainderSum ));
106- ExprNode divided = ExprNode .op ('/' , List . of (negatedRemainder , topCoefficientSum ));
105+ ? ExprNode .number (0.0 ) : ExprNode .op ('-' , Arrays . asList (remainderSum ));
106+ ExprNode divided = ExprNode .op ('/' , Arrays . asList (negatedRemainder , topCoefficientSum ));
107107
108108 int [] canonicalToReal = buildCanonicalToReal (root , order );
109109 int realFrameSize = computeRealFrameSize (canonicalToReal );
@@ -146,7 +146,7 @@ private static void collectTerms(ExprNode node, boolean negate, List<TermWithSig
146146 }
147147
148148 private static ExprNode signed (ExprNode term , boolean negative ) {
149- return negative ? ExprNode .op ('-' , List . of (term )) : term ;
149+ return negative ? ExprNode .op ('-' , Arrays . asList (term )) : term ;
150150 }
151151
152152 private static ExprNode sumSigned (List <ExprNode > terms ) {
@@ -155,7 +155,7 @@ private static ExprNode sumSigned(List<ExprNode> terms) {
155155 }
156156 ExprNode acc = terms .get (0 );
157157 for (int i = 1 ; i < terms .size (); i ++) {
158- acc = ExprNode .op ('+' , List . of (acc , terms .get (i )));
158+ acc = ExprNode .op ('+' , Arrays . asList (acc , terms .get (i )));
159159 }
160160 return acc ;
161161 }
@@ -224,11 +224,11 @@ private static ExprNode substituteIfLinear(ExprNode node, int stateIndex) {
224224 }
225225 if (leftHas ) {
226226 ExprNode newLeft = substituteIfLinear (left , stateIndex );
227- return newLeft == null ? null : ExprNode .op ('*' , List . of (newLeft , right ));
227+ return newLeft == null ? null : ExprNode .op ('*' , Arrays . asList (newLeft , right ));
228228 }
229229 if (rightHas ) {
230230 ExprNode newRight = substituteIfLinear (right , stateIndex );
231- return newRight == null ? null : ExprNode .op ('*' , List . of (left , newRight ));
231+ return newRight == null ? null : ExprNode .op ('*' , Arrays . asList (left , newRight ));
232232 }
233233 return node ;
234234 }
@@ -240,7 +240,7 @@ private static ExprNode substituteIfLinear(ExprNode node, int stateIndex) {
240240 }
241241 if (countStateOccurrences (numerator , stateIndex ) > 0 ) {
242242 ExprNode newNumerator = substituteIfLinear (numerator , stateIndex );
243- return newNumerator == null ? null : ExprNode .op ('/' , List . of (newNumerator , denominator ));
243+ return newNumerator == null ? null : ExprNode .op ('/' , Arrays . asList (newNumerator , denominator ));
244244 }
245245 return node ;
246246 }
@@ -253,7 +253,7 @@ private static ExprNode substituteIfLinear(ExprNode node, int stateIndex) {
253253 return node ;
254254 }
255255 ExprNode newChild = substituteIfLinear (child , stateIndex );
256- return newChild == null ? null : ExprNode .op ('-' , List . of (newChild ));
256+ return newChild == null ? null : ExprNode .op ('-' , Arrays . asList (newChild ));
257257 }
258258 // Any other operator (binary '+', binary '-', '^') -- if the target
259259 // state variable is anywhere underneath, the path is disqualified;
0 commit comments