make TableAutoformatLookSpecifier cloneable

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-11 18:40:05 +00:00
parent 984c180ade
commit c8dc8aa6d6

View 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