]> source.dussan.org Git - poi.git/commitdiff
simplify PlexOfField by using GenericPropertyNode
authorSergey Vladimirov <sergey@apache.org>
Fri, 8 Jul 2011 12:18:36 +0000 (12:18 +0000)
committerSergey Vladimirov <sergey@apache.org>
Fri, 8 Jul 2011 12:18:36 +0000 (12:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144282 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfField.java

index 3d6ec0b0a87014ff4a8d6962c19bf7da60f404f3..a287c8b9cad5dafa6bc427d064d820ac6f2ede89 100644 (file)
@@ -30,7 +30,7 @@ import java.text.MessageFormat;
 public class PlexOfField
 {
 
-    private final PropertyNode<?> propertyNode;
+    private final GenericPropertyNode propertyNode;
     private final FieldDescriptor fld;
 
     @Deprecated
@@ -40,10 +40,10 @@ public class PlexOfField
         fld = new FieldDescriptor( data );
     }
 
-    public PlexOfField( PropertyNode<?> propertyNode )
+    public PlexOfField( GenericPropertyNode propertyNode )
     {
         this.propertyNode = propertyNode;
-        fld = new FieldDescriptor( (byte[]) propertyNode._buf );
+        fld = new FieldDescriptor( propertyNode.getBytes() );
     }
 
     public int getFcStart()