Remove unused integer (#33)

This commit is contained in:
Kostya 2020-06-11 16:28:06 +03:00 committed by GitHub
parent da34e9c75f
commit 4cf9bc8ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 9 deletions

View File

@ -11,7 +11,7 @@
</parent>
<artifactId>fraudo</artifactId>
<version>0.0.16</version>
<version>0.0.17</version>
<name>Fraudo</name>
<description>Language for describing antifraud patterns</description>

View File

@ -52,7 +52,6 @@ integerExpression
floatExpression
: sum
| amount
| INTEGER
| DECIMAL
;

View File

@ -60,7 +60,6 @@ floatExpression
| sum_chargeback
| sum_refund
| amount
| INTEGER
| DECIMAL
;

View File

@ -180,9 +180,7 @@ public class FirstFindP2PVisitorImpl<T extends BaseModel, U> extends FraudoP2PBa
@Override
public Double visitFloatExpression(FloatExpressionContext ctx) {
if (ctx.INTEGER() != null) {
return Double.valueOf(TextUtil.safeGetText(ctx.INTEGER()));
} else if (ctx.DECIMAL() != null) {
if (ctx.DECIMAL() != null) {
return Double.valueOf(TextUtil.safeGetText(ctx.DECIMAL()));
}
return (Double) visitChildren(ctx);

View File

@ -184,9 +184,7 @@ public class FirstFindVisitorImpl<T extends BaseModel, U> extends FraudoPaymentB
@Override
public Double visitFloatExpression(FloatExpressionContext ctx) {
if (ctx.INTEGER() != null) {
return Double.valueOf(TextUtil.safeGetText(ctx.INTEGER()));
} else if (ctx.DECIMAL() != null) {
if (ctx.DECIMAL() != null) {
return Double.valueOf(TextUtil.safeGetText(ctx.DECIMAL()));
}
return (Double) visitChildren(ctx);