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 e3543d346f
commit 4d19b7b1a7
1 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,8 @@ package org.apache.poi.hwpf.usermodel;
import org.apache.poi.hwpf.model.types.TLPAbstractType; 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; public static final int SIZE = 4;
@ -19,9 +20,15 @@ public class TableAutoformatLookSpecifier extends TLPAbstractType
@Override @Override
public TableAutoformatLookSpecifier clone() public TableAutoformatLookSpecifier clone()
throws CloneNotSupportedException
{ {
return (TableAutoformatLookSpecifier) super.clone(); try
{
return (TableAutoformatLookSpecifier) super.clone();
}
catch ( CloneNotSupportedException e )
{
throw new Error( e.getMessage(), e );
}
} }
@Override @Override