]> source.dussan.org Git - poi.git/commitdiff
make TableAutoformatLookSpecifier cloneable
authorSergey Vladimirov <sergey@apache.org>
Mon, 11 Jul 2011 18:40:05 +0000 (18:40 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 11 Jul 2011 18:40:05 +0000 (18:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145282 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableAutoformatLookSpecifier.java

index 229b92dc9fe904a1ae6887b8de80186432f8d36b..edc07673140388dd235b13ebc33c651ff0204a4e 100644 (file)
@@ -2,7 +2,8 @@ package org.apache.poi.hwpf.usermodel;
 
 import org.apache.poi.hwpf.model.types.TLPAbstractType;
 
-public class TableAutoformatLookSpecifier extends TLPAbstractType
+public class TableAutoformatLookSpecifier extends TLPAbstractType implements
+        Cloneable
 {
     public static final int SIZE = 4;
 
@@ -19,9 +20,15 @@ public class TableAutoformatLookSpecifier extends TLPAbstractType
 
     @Override
     public TableAutoformatLookSpecifier clone()
-            throws CloneNotSupportedException
     {
-        return (TableAutoformatLookSpecifier) super.clone();
+        try
+        {
+            return (TableAutoformatLookSpecifier) super.clone();
+        }
+        catch ( CloneNotSupportedException e )
+        {
+            throw new Error( e.getMessage(), e );
+        }
     }
 
     @Override