From: Josh Micich Date: Tue, 1 Dec 2009 03:09:55 +0000 (+0000) Subject: Made ScalarConstantPtg public and MissingArgEval.instance final X-Git-Tag: REL_3_6~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c90470be1f33195f9b207873b8f0a3c6f5d812d2;p=poi.git Made ScalarConstantPtg public and MissingArgEval.instance final git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@885661 13f79535-47bb-0310-9956-ffa450edef68 --- 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