From c90470be1f33195f9b207873b8f0a3c6f5d812d2 Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Tue, 1 Dec 2009 03:09:55 +0000 Subject: [PATCH] Made ScalarConstantPtg public and MissingArgEval.instance final git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@885661 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/record/formula/ScalarConstantPtg.java | 6 ++++-- .../apache/poi/hssf/record/formula/eval/MissingArgEval.java | 2 +- 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 -- 2.39.5