]> source.dussan.org Git - poi.git/commitdiff
Made ScalarConstantPtg public and MissingArgEval.instance final
authorJosh Micich <josh@apache.org>
Tue, 1 Dec 2009 03:09:55 +0000 (03:09 +0000)
committerJosh Micich <josh@apache.org>
Tue, 1 Dec 2009 03:09:55 +0000 (03:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@885661 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/formula/ScalarConstantPtg.java
src/java/org/apache/poi/hssf/record/formula/eval/MissingArgEval.java

index b36f4978e2f0fbf552c201fdd3b7dc8629e49365..37524fbb6579926fa4ce8ef83050ff6811f79d31 100644 (file)
@@ -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;
        }
 
index f398947d8cdfdbada6369fcc2490a11b2e65bd52..984e6383ab2927961b57910187c882d4987b734a 100644 (file)
@@ -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