mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-21 16:04:09 -08:00
Bump checkstyle version to support Java 21 syntax
This commit is contained in:
parent
ab507bb22b
commit
ada85b4c07
|
@ -1697,7 +1697,7 @@ public class TBigDecimal extends Number implements Comparable<TBigDecimal>, Seri
|
|||
TMathContext newPrecision = mc; // MathContext by default
|
||||
|
||||
// In particular cases, it reduces the problem to call the other 'pow()'
|
||||
if ((n == 0) || ((isZero()) && (n > 0))) {
|
||||
if (n == 0 || isZero() && n > 0) {
|
||||
return pow(n);
|
||||
}
|
||||
if ((m > 999999999) || ((mcPrecision == 0) && (n < 0)) || ((mcPrecision > 0) && (elength > mcPrecision))) {
|
||||
|
@ -2382,7 +2382,7 @@ public class TBigDecimal extends Number implements Comparable<TBigDecimal>, Seri
|
|||
*/
|
||||
public String toPlainString() {
|
||||
String intStr = getUnscaledValue().toString();
|
||||
if ((scale == 0) || ((isZero()) && (scale < 0))) {
|
||||
if (scale == 0 || isZero() && scale < 0) {
|
||||
return intStr;
|
||||
}
|
||||
int begin = (signum() < 0) ? 1 : 0;
|
||||
|
@ -2429,7 +2429,7 @@ public class TBigDecimal extends Number implements Comparable<TBigDecimal>, Seri
|
|||
* @return this {@code BigDecimal} as a big integer instance.
|
||||
*/
|
||||
public TBigInteger toBigInteger() {
|
||||
if ((scale == 0) || (isZero())) {
|
||||
if (scale == 0 || isZero()) {
|
||||
return getUnscaledValue();
|
||||
} else if (scale < 0) {
|
||||
return getUnscaledValue().multiply(TMultiplication.powerOf10(-(long) scale));
|
||||
|
@ -2449,7 +2449,7 @@ public class TBigDecimal extends Number implements Comparable<TBigDecimal>, Seri
|
|||
* if rounding is necessary.
|
||||
*/
|
||||
public TBigInteger toBigIntegerExact() {
|
||||
if ((scale == 0) || (isZero())) {
|
||||
if (scale == 0 || isZero()) {
|
||||
return getUnscaledValue();
|
||||
} else if (scale < 0) {
|
||||
return getUnscaledValue().multiply(TMultiplication.powerOf10(-(long) scale));
|
||||
|
|
|
@ -40,7 +40,12 @@
|
|||
<module name="DefaultComesLast"/>
|
||||
<module name="FallThrough"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="UnnecessaryParentheses"/>
|
||||
<module name="UnnecessaryParentheses">
|
||||
<property name="tokens" value="EXPR,IDENT,NUM_DOUBLE,NUM_FLOAT,NUM_INT,NUM_LONG,STRING_LITERAL,
|
||||
LITERAL_NULL,LITERAL_FALSE,LITERAL_TRUE,ASSIGN,BAND_ASSIGN,BOR_ASSIGN,BSR_ASSIGN,BXOR_ASSIGN,DIV_ASSIGN,
|
||||
MINUS_ASSIGN,MOD_ASSIGN,PLUS_ASSIGN,SL_ASSIGN,SR_ASSIGN,STAR_ASSIGN,LAMBDA,TEXT_BLOCK_LITERAL_BEGIN,
|
||||
LITERAL_INSTANCEOF,INC,DEC,POST_INC,POST_DEC"/>
|
||||
</module>
|
||||
<module name="RedundantImport"/>
|
||||
<module name="UnusedImports">
|
||||
<property name="processJavadoc" value="true"/>
|
||||
|
|
|
@ -4,7 +4,7 @@ asm = "9.5"
|
|||
jackson = "2.14.2"
|
||||
jetty = "9.4.50.v20221201"
|
||||
shadow = "7.1.2"
|
||||
checkstyle = "8.41"
|
||||
checkstyle = "10.12.3"
|
||||
idea = "2020.1.4"
|
||||
idea-scala = "2020.1.43"
|
||||
maven = "3.5.4"
|
||||
|
|
Loading…
Reference in New Issue
Block a user