remove invalid clone methods

This commit is contained in:
Sebastian Sdorra
2012-06-26 08:13:38 +02:00
parent ddb1af8ec8
commit 644b44f531
9 changed files with 9 additions and 234 deletions

View File

@@ -43,7 +43,7 @@ import com.google.common.base.Objects;
* @author Sebastian Sdorra
* @since 1.8
*/
public class BlameLine implements Cloneable
public class BlameLine
{
/**
@@ -77,31 +77,6 @@ public class BlameLine implements Cloneable
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link BlameLine} object.
*
*
* @return clone of this {@link BlameLine}
*
* @since 1.17
*/
@Override
public BlameLine clone()
{
BlameLine blameLine = null;
try
{
blameLine = (BlameLine) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return blameLine;
}
/**
* {@inheritDoc}
*

View File

@@ -57,7 +57,7 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement(name = "blame-result")
@XmlAccessorType(XmlAccessType.FIELD)
public class BlameResult implements Cloneable
public class BlameResult
{
/**
@@ -93,31 +93,6 @@ public class BlameResult implements Cloneable
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link BlameResult} object.
*
*
* @return clone of this {@link BlameResult}
*
* @since 1.17
*/
@Override
public BlameResult clone()
{
BlameResult blameResult = null;
try
{
blameResult = (BlameResult) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return blameResult;
}
/**
* {@inheritDoc}
*

View File

@@ -55,7 +55,7 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "browser-result")
public class BrowserResult implements Iterable<FileObject>, Cloneable
public class BrowserResult implements Iterable<FileObject>
{
/**
@@ -84,31 +84,6 @@ public class BrowserResult implements Iterable<FileObject>, Cloneable
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link BrowserResult} object.
*
*
* @return clone of this {@link BrowserResult}
*
* @since 1.17
*/
@Override
public BrowserResult clone()
{
BrowserResult browserResult = null;
try
{
browserResult = (BrowserResult) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return browserResult;
}
/**
* {@inheritDoc}
*

View File

@@ -62,7 +62,7 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "changeset")
@XmlAccessorType(XmlAccessType.FIELD)
public class Changeset extends BasicPropertiesAware
implements Validateable, Cloneable, Serializable
implements Validateable, Serializable
{
/** Field description */
@@ -108,31 +108,6 @@ public class Changeset extends BasicPropertiesAware
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link Changeset} object.
*
*
* @return clone of this {@link Changeset}
*
* @since 1.17
*/
@Override
public Changeset clone()
{
Changeset changeset = null;
try
{
changeset = (Changeset) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return changeset;
}
/**
* {@inheritDoc}
*

View File

@@ -50,7 +50,7 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement(name = "changeset-paging")
@XmlAccessorType(XmlAccessType.FIELD)
public class ChangesetPagingResult implements Iterable<Changeset>, Cloneable
public class ChangesetPagingResult implements Iterable<Changeset>
{
/**
@@ -74,31 +74,6 @@ public class ChangesetPagingResult implements Iterable<Changeset>, Cloneable
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link ChangesetPagingResult} object.
*
*
* @return clone of this {@link ChangesetPagingResult}
*
* @since 1.17
*/
@Override
public ChangesetPagingResult clone()
{
ChangesetPagingResult changesetPagingResult = null;
try
{
changesetPagingResult = (ChangesetPagingResult) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return changesetPagingResult;
}
/**
* Method description
*

View File

@@ -56,31 +56,6 @@ import javax.xml.bind.annotation.XmlRootElement;
public class FileObject implements LastModifiedAware
{
/**
* Create a clone of this {@link FileObject} object.
*
*
* @return clone of this {@link FileObject}
*
* @since 1.17
*/
@Override
public FileObject clone()
{
FileObject fileObject = null;
try
{
fileObject = (FileObject) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return fileObject;
}
/**
* {@inheritDoc}
*

View File

@@ -58,7 +58,7 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "modifications")
public class Modifications implements Cloneable, Serializable
public class Modifications implements Serializable
{
/** Field description */
@@ -113,31 +113,6 @@ public class Modifications implements Cloneable, Serializable
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link Modifications} object.
*
*
* @return clone of this {@link Modifications}
*
* @since 1.17
*/
@Override
public Modifications clone()
{
Modifications modifications = null;
try
{
modifications = (Modifications) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return modifications;
}
/**
* {@inheritDoc}
*

View File

@@ -56,7 +56,7 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement(name = "person")
@XmlAccessorType(XmlAccessType.FIELD)
public class Person implements Validateable, Serializable, Cloneable
public class Person implements Validateable, Serializable
{
/** Field description */
@@ -130,31 +130,6 @@ public class Person implements Validateable, Serializable, Cloneable
return person;
}
/**
* Create a clone of this {@link Person} object.
*
*
* @return clone of this {@link Person}
*
* @since 1.17
*/
@Override
public Person clone()
{
Person person = null;
try
{
person = (Person) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return person;
}
/**
* {@inheritDoc}
*

View File

@@ -50,7 +50,7 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement(name = "subrepository")
@XmlAccessorType(XmlAccessType.FIELD)
public class SubRepository implements Cloneable
public class SubRepository
{
/**
@@ -99,32 +99,7 @@ public class SubRepository implements Cloneable
}
//~--- methods --------------------------------------------------------------
/**
* Create a clone of this {@link SubRepository} object.
*
*
* @return clone of this {@link SubRepository}
*
* @since 1.17
*/
@Override
public SubRepository clone()
{
SubRepository subRepository = null;
try
{
subRepository = (SubRepository) super.clone();
}
catch (CloneNotSupportedException ex)
{
throw new RuntimeException(ex);
}
return subRepository;
}
/**
* {@inheritDoc}
*