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; 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,10 +20,16 @@ public class TableAutoformatLookSpecifier extends TLPAbstractType
@Override @Override
public TableAutoformatLookSpecifier clone() public TableAutoformatLookSpecifier clone()
throws CloneNotSupportedException {
try
{ {
return (TableAutoformatLookSpecifier) super.clone(); return (TableAutoformatLookSpecifier) super.clone();
} }
catch ( CloneNotSupportedException e )
{
throw new Error( e.getMessage(), e );
}
}
@Override @Override
public boolean equals( Object obj ) public boolean equals( Object obj )