From: Nick Burch Date: Wed, 29 Dec 2010 01:34:18 +0000 (+0000) Subject: Fix the name of the RootProperty, as it never changes X-Git-Tag: REL_3_8_BETA1~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=628081356ee489554823252627903e889babd659;p=poi.git Fix the name of the RootProperty, as it never changes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053503 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/poifs/property/RootProperty.java b/src/java/org/apache/poi/poifs/property/RootProperty.java index cb4b66e614..b934a2601b 100644 --- a/src/java/org/apache/poi/poifs/property/RootProperty.java +++ b/src/java/org/apache/poi/poifs/property/RootProperty.java @@ -26,10 +26,11 @@ import org.apache.poi.poifs.storage.SmallDocumentBlock; * @author Marc Johnson (mjohnson at apache dot org) */ public final class RootProperty extends DirectoryProperty { + private static final String NAME = "Root Entry"; RootProperty() { - super("Root Entry"); + super(NAME); // overrides setNodeColor(_NODE_BLACK); @@ -59,4 +60,13 @@ public final class RootProperty extends DirectoryProperty { { super.setSize(SmallDocumentBlock.calcSize(size)); } + + /** + * Returns the fixed name "Root Entry", as the + * raw property doesn't have a real name set + */ + @Override + public String getName() { + return NAME; + } }