poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1053503 - /poi/trunk/src/java/org/apache/poi/poifs/property/RootProperty.java
Date Wed, 29 Dec 2010 01:34:18 GMT
Author: nick
Date: Wed Dec 29 01:34:18 2010
New Revision: 1053503

URL: http://svn.apache.org/viewvc?rev=1053503&view=rev
Log:
Fix the name of the RootProperty, as it never changes

Modified:
    poi/trunk/src/java/org/apache/poi/poifs/property/RootProperty.java

Modified: poi/trunk/src/java/org/apache/poi/poifs/property/RootProperty.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/poifs/property/RootProperty.java?rev=1053503&r1=1053502&r2=1053503&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/poifs/property/RootProperty.java (original)
+++ poi/trunk/src/java/org/apache/poi/poifs/property/RootProperty.java Wed Dec 29 01:34:18
2010
@@ -26,10 +26,11 @@ import org.apache.poi.poifs.storage.Smal
  * @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 
     {
         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;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message