mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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");
|
||||
}
|
||||
|
||||
|
||||
public SpellEffect getSpellEffect() {
|
||||
if ( null == clsEffect )
|
||||
if (null == clsEffect) {
|
||||
return null;
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
Constructor<? extends SpellEffect>[] cc = (Constructor<? extends SpellEffect>[]) clsEffect.getConstructors();
|
||||
for (Constructor<? extends SpellEffect> c : cc) {
|
||||
@@ -145,8 +145,9 @@ public enum ApiType {
|
||||
}
|
||||
|
||||
public SpellAiLogic getAi() {
|
||||
if ( null == clsAi )
|
||||
if (null == clsAi) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
Constructor<? extends SpellAiLogic>[] cc = (Constructor<? extends SpellAiLogic>[]) clsAi.getConstructors();
|
||||
|
||||
Reference in New Issue
Block a user