From 30a23fc7b4dfd7320107a1c0f2412485628f4130 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Wed, 29 Dec 2010 01:34:18 +0000 Subject: [PATCH] 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 --- .../org/apache/poi/poifs/property/RootProperty.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/poifs/property/RootProperty.java b/src/java/org/apache/poi/poifs/property/RootProperty.java index cb4b66e61..b934a2601 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; + } }