aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/poi/hssf/record/formula/ScalarConstantPtg.java6
-rw-r--r--src/java/org/apache/poi/hssf/record/formula/eval/MissingArgEval.java2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/hssf/record/formula/ScalarConstantPtg.java b/src/java/org/apache/poi/hssf/record/formula/ScalarConstantPtg.java
index b36f4978e2..37524fbb65 100644
--- a/src/java/org/apache/poi/hssf/record/formula/ScalarConstantPtg.java
+++ b/src/java/org/apache/poi/hssf/record/formula/ScalarConstantPtg.java
@@ -19,10 +19,12 @@ package org.apache.poi.hssf.record.formula;
/**
+ * Common superclass of all {@link Ptg}s that represent simple constant values.
+ *
* @author Josh Micich
*/
-abstract class ScalarConstantPtg extends Ptg {
- public boolean isBaseToken() {
+public abstract class ScalarConstantPtg extends Ptg {
+ public final boolean isBaseToken() {
return true;
}
diff --git a/src/java/org/apache/poi/hssf/record/formula/eval/MissingArgEval.java b/src/java/org/apache/poi/hssf/record/formula/eval/MissingArgEval.java
index f398947d8c..984e6383ab 100644
--- a/src/java/org/apache/poi/hssf/record/formula/eval/MissingArgEval.java
+++ b/src/java/org/apache/poi/hssf/record/formula/eval/MissingArgEval.java
@@ -28,7 +28,7 @@ package org.apache.poi.hssf.record.formula.eval;
*/
public final class MissingArgEval implements ValueEval {
- public static MissingArgEval instance = new MissingArgEval();
+ public static final MissingArgEval instance = new MissingArgEval();
private MissingArgEval() {
// enforce singleton