mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 21:36:43 +02:00
fix internal not cloneable error
This commit is contained in:
@@ -46,7 +46,8 @@ import java.io.Serializable;
|
||||
* @author Sebastian Sdorra
|
||||
* @since 1.17
|
||||
*/
|
||||
public abstract class FileBaseCommandRequest implements Resetable, Serializable
|
||||
public abstract class FileBaseCommandRequest
|
||||
implements Resetable, Serializable, Cloneable
|
||||
{
|
||||
|
||||
/**
|
||||
@@ -164,6 +165,36 @@ public abstract class FileBaseCommandRequest implements Resetable, Serializable
|
||||
return revision;
|
||||
}
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*
|
||||
* @throws CloneNotSupportedException
|
||||
*/
|
||||
@Override
|
||||
protected FileBaseCommandRequest clone() throws CloneNotSupportedException
|
||||
{
|
||||
FileBaseCommandRequest clone = null;
|
||||
|
||||
try
|
||||
{
|
||||
clone = (FileBaseCommandRequest) super.clone();
|
||||
}
|
||||
catch (CloneNotSupportedException e)
|
||||
{
|
||||
|
||||
// this shouldn't happen, since we are Cloneable
|
||||
throw new InternalError(
|
||||
"FileBaseCommandRequest seems not to be cloneable");
|
||||
}
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
|
||||
Reference in New Issue
Block a user