aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/ast/DoubleConst.java
diff options
context:
space:
mode:
authorChristian Melchior <christian@ilios.dk>2017-11-12 15:37:15 +0100
committerChristian Melchior <christian@ilios.dk>2017-11-12 15:37:15 +0100
commit215a61f3a0a1d2794df51611218068ab09a90d56 (patch)
tree7309f91e448e346a26d7f339fbd84464402d9406 /src/main/javassist/compiler/ast/DoubleConst.java
parentf4769c7ad702fa529a790106ea5c318a7af5c7b7 (diff)
parente1f0bba5de4dc03a9debfab333683f07cfbcb594 (diff)
downloadjavassist-215a61f3a0a1d2794df51611218068ab09a90d56.tar.gz
javassist-215a61f3a0a1d2794df51611218068ab09a90d56.zip
Merge branch 'master' into cm/bug/classpath-close
# Conflicts: # pom.xml # src/main/javassist/ByteArrayClassPath.java # src/main/javassist/ClassClassPath.java # src/main/javassist/ClassPoolTail.java # src/main/javassist/LoaderClassPath.java # src/main/javassist/URLClassPath.java
Diffstat (limited to 'src/main/javassist/compiler/ast/DoubleConst.java')
-rw-r--r--src/main/javassist/compiler/ast/DoubleConst.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/javassist/compiler/ast/DoubleConst.java b/src/main/javassist/compiler/ast/DoubleConst.java
index 23ff0b65..f8d0afde 100644
--- a/src/main/javassist/compiler/ast/DoubleConst.java
+++ b/src/main/javassist/compiler/ast/DoubleConst.java
@@ -23,6 +23,8 @@ import javassist.compiler.TokenId;
* Double constant.
*/
public class DoubleConst extends ASTree {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected double value;
protected int type;
@@ -36,8 +38,10 @@ public class DoubleConst extends ASTree {
*/
public int getType() { return type; }
+ @Override
public String toString() { return Double.toString(value); }
+ @Override
public void accept(Visitor v) throws CompileError {
v.atDoubleConst(this);
}
@@ -63,7 +67,7 @@ public class DoubleConst extends ASTree {
}
private DoubleConst compute0(int op, IntConst right) {
- return compute(op, this.value, (double)right.value, this.type);
+ return compute(op, this.value, right.value, this.type);
}
private static DoubleConst compute(int op, double value1, double value2,