mirror of
https://github.com/valitydev/fraudo.git
synced 2024-11-06 01:45:16 +00:00
Remove unused integer (#33)
This commit is contained in:
parent
da34e9c75f
commit
4cf9bc8ac6
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -52,7 +52,6 @@ integerExpression
|
||||
floatExpression
|
||||
: sum
|
||||
| amount
|
||||
| INTEGER
|
||||
| DECIMAL
|
||||
;
|
||||
|
||||
|
@ -60,7 +60,6 @@ floatExpression
|
||||
| sum_chargeback
|
||||
| sum_refund
|
||||
| amount
|
||||
| INTEGER
|
||||
| DECIMAL
|
||||
;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user