Fix PMD violations #327
This commit is contained in:
@ -9,11 +9,9 @@ public class ElfBeast extends Beast {
|
||||
|
||||
public ElfBeast() {}
|
||||
|
||||
public ElfBeast(ElfBeast beast) {}
|
||||
|
||||
@Override
|
||||
public Beast clone() throws CloneNotSupportedException {
|
||||
return new ElfBeast(this);
|
||||
return new ElfBeast();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,11 +9,9 @@ public class ElfMage extends Mage {
|
||||
|
||||
public ElfMage() {}
|
||||
|
||||
public ElfMage(ElfMage mage) {}
|
||||
|
||||
@Override
|
||||
public Mage clone() throws CloneNotSupportedException {
|
||||
return new ElfMage(this);
|
||||
return new ElfMage();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,11 +9,9 @@ public class ElfWarlord extends Warlord {
|
||||
|
||||
public ElfWarlord() {}
|
||||
|
||||
public ElfWarlord(ElfWarlord warlord) {}
|
||||
|
||||
@Override
|
||||
public Warlord clone() throws CloneNotSupportedException {
|
||||
return new ElfWarlord(this);
|
||||
return new ElfWarlord();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,11 +9,9 @@ public class OrcBeast extends Beast {
|
||||
|
||||
public OrcBeast() {}
|
||||
|
||||
public OrcBeast(OrcBeast beast) {}
|
||||
|
||||
@Override
|
||||
public Beast clone() throws CloneNotSupportedException {
|
||||
return new OrcBeast(this);
|
||||
return new OrcBeast();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,11 +9,9 @@ public class OrcMage extends Mage {
|
||||
|
||||
public OrcMage() {}
|
||||
|
||||
public OrcMage(OrcMage mage) {}
|
||||
|
||||
@Override
|
||||
public Mage clone() throws CloneNotSupportedException {
|
||||
return new OrcMage(this);
|
||||
return new OrcMage();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,11 +9,9 @@ public class OrcWarlord extends Warlord {
|
||||
|
||||
public OrcWarlord() {}
|
||||
|
||||
public OrcWarlord(OrcWarlord warlord) {}
|
||||
|
||||
@Override
|
||||
public Warlord clone() throws CloneNotSupportedException {
|
||||
return new OrcWarlord(this);
|
||||
return new OrcWarlord();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2,8 +2,6 @@ package com.iluwatar.prototype;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.prototype.App;
|
||||
|
||||
/**
|
||||
*
|
||||
* Application test
|
||||
|
Reference in New Issue
Block a user