Skip to content

Commit

Permalink
⬇️ upgrade switch/case in order to compile on Java 8 (as plantuml)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Lum committed Jun 15, 2024
1 parent 63a5ac6 commit ee9458a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/math/ASCIIMathTeXImg.java
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,8 @@ private String[] aAMTparseSexpr(String str) {
symbol = aAMgetSymbol(str);
}
switch (symbol.ttype) {
case UNDEROVER, CONST:
case UNDEROVER:
case CONST:
str = aAMremoveCharsAndBlanks(str, symbol.input.length());
String texsymbol = aAMTgetTeXsymbol(symbol);
if (texsymbol.isEmpty() || texsymbol.charAt(0) == '\\' || symbol.tag.equals("mo"))
Expand Down Expand Up @@ -1026,4 +1027,4 @@ public String getTeX(String asciiMathInput) {
static {
aAMinitSymbols();
}
}
}

0 comments on commit ee9458a

Please sign in to comment.