Fix PMD violations #327

This commit is contained in:
Ilkka Seppala
2015-12-27 21:21:57 +02:00
parent df911baf36
commit 5f033be54f
94 changed files with 92 additions and 319 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -2,8 +2,6 @@ package com.iluwatar.prototype;
import org.junit.Test;
import com.iluwatar.prototype.App;
/**
*
* Application test