mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
remove invalid clone methods
This commit is contained in:
@@ -43,7 +43,7 @@ import com.google.common.base.Objects;
|
|||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
* @since 1.8
|
* @since 1.8
|
||||||
*/
|
*/
|
||||||
public class BlameLine implements Cloneable
|
public class BlameLine
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -77,31 +77,6 @@ public class BlameLine implements Cloneable
|
|||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- 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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "blame-result")
|
@XmlRootElement(name = "blame-result")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
public class BlameResult implements Cloneable
|
public class BlameResult
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -93,31 +93,6 @@ public class BlameResult implements Cloneable
|
|||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- 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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
*/
|
*/
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
@XmlRootElement(name = "browser-result")
|
@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 --------------------------------------------------------------
|
//~--- 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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
@XmlRootElement(name = "changeset")
|
@XmlRootElement(name = "changeset")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
public class Changeset extends BasicPropertiesAware
|
public class Changeset extends BasicPropertiesAware
|
||||||
implements Validateable, Cloneable, Serializable
|
implements Validateable, Serializable
|
||||||
{
|
{
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
@@ -108,31 +108,6 @@ public class Changeset extends BasicPropertiesAware
|
|||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- 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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "changeset-paging")
|
@XmlRootElement(name = "changeset-paging")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@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 --------------------------------------------------------------
|
//~--- 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
|
* Method description
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -56,31 +56,6 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
public class FileObject implements LastModifiedAware
|
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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
*/
|
*/
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
@XmlRootElement(name = "modifications")
|
@XmlRootElement(name = "modifications")
|
||||||
public class Modifications implements Cloneable, Serializable
|
public class Modifications implements Serializable
|
||||||
{
|
{
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
@@ -113,31 +113,6 @@ public class Modifications implements Cloneable, Serializable
|
|||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- 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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "person")
|
@XmlRootElement(name = "person")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
public class Person implements Validateable, Serializable, Cloneable
|
public class Person implements Validateable, Serializable
|
||||||
{
|
{
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
@@ -130,31 +130,6 @@ public class Person implements Validateable, Serializable, Cloneable
|
|||||||
return person;
|
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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "subrepository")
|
@XmlRootElement(name = "subrepository")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
public class SubRepository implements Cloneable
|
public class SubRepository
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -99,32 +99,7 @@ public class SubRepository implements Cloneable
|
|||||||
}
|
}
|
||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- 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}
|
* {@inheritDoc}
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user