mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -123,10 +123,10 @@ public enum ApiType {
|
|||||||
throw new RuntimeException("Element " + value + " not found in ApiType enum");
|
throw new RuntimeException("Element " + value + " not found in ApiType enum");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public SpellEffect getSpellEffect() {
|
public SpellEffect getSpellEffect() {
|
||||||
if ( null == clsEffect )
|
if (null == clsEffect) {
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Constructor<? extends SpellEffect>[] cc = (Constructor<? extends SpellEffect>[]) clsEffect.getConstructors();
|
Constructor<? extends SpellEffect>[] cc = (Constructor<? extends SpellEffect>[]) clsEffect.getConstructors();
|
||||||
for (Constructor<? extends SpellEffect> c : cc) {
|
for (Constructor<? extends SpellEffect> c : cc) {
|
||||||
@@ -145,8 +145,9 @@ public enum ApiType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public SpellAiLogic getAi() {
|
public SpellAiLogic getAi() {
|
||||||
if ( null == clsAi )
|
if (null == clsAi) {
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Constructor<? extends SpellAiLogic>[] cc = (Constructor<? extends SpellAiLogic>[]) clsAi.getConstructors();
|
Constructor<? extends SpellAiLogic>[] cc = (Constructor<? extends SpellAiLogic>[]) clsAi.getConstructors();
|
||||||
|
|||||||
Reference in New Issue
Block a user