Skip to content

Commit af44b2a

Browse files
Use util method in SymbolInfo
1 parent f76282b commit af44b2a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/net/marcellperger/mathexpr/MathSymbol.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package net.marcellperger.mathexpr;
22

33

4-
import net.marcellperger.mathexpr.util.Util;
54
import org.jetbrains.annotations.Nullable;
65

76
// TODO maybe make it required to have an entry in SymbolInfo
@@ -19,7 +18,7 @@ public interface MathSymbol {
1918
* just for a nicer syntax when we DO have an instance
2019
*/
2120
default @Nullable Integer instPrecedenceInt() {
22-
return Util.chainNulls(SymbolInfo.fromClass(this.getClass()), s -> s.precedence);
21+
return SymbolInfo.precedenceFromClass(getClass());
2322
}
2423

2524
default String fmtAlwaysParens() {

0 commit comments

Comments
 (0)