refactor: removed netbeans's auto-generated comments

This commit is contained in:
Oleg Agafonov 2023-09-02 16:04:21 +04:00
parent 344ff81a37
commit 8a65b0f149
27 changed files with 33 additions and 33 deletions

View file

@ -145,7 +145,7 @@ public class ColorPane extends JEditorPane {
@Override
public void setText(String string) {
super.setText(string); //To change body of generated methods, choose Tools | Templates.
super.setText(string);
}
public void append(String text) {

View file

@ -447,7 +447,7 @@ public class TableModel extends AbstractTableModel implements ICardGrid {
if (numberEditable && col == 0) {
return true;
}
return super.isCellEditable(row, col); //To change body of generated methods, choose Tools | Templates.
return super.isCellEditable(row, col);
}
}

View file

@ -39,7 +39,7 @@ public class DraftPane extends MagePane {
@Override
public void changeGUISize() {
super.changeGUISize(); //To change body of generated methods, choose Tools | Templates.
super.changeGUISize();
draftPanel1.changeGUISize();
}

View file

@ -304,7 +304,7 @@ public class CountryComboBox extends JComboBox {
@Override
public Object getSelectedItem() {
return super.getSelectedItem(); //To change body of generated methods, choose Tools | Templates.
return super.getSelectedItem();
}
}

View file

@ -2874,7 +2874,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
@Override
public void cleanUpOnMatchEnd() {
super.cleanUpOnMatchEnd(); //To change body of generated methods, choose Tools | Templates.
super.cleanUpOnMatchEnd();
}
@Override

View file

@ -127,7 +127,7 @@ class ChangeCreatureTypeTargetEffect extends ContinuousEffectImpl {
}
}
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
}
@Override

View file

@ -140,6 +140,6 @@ class OpportunisticDragonAttackBlockEffect extends CantAttackBlockTargetEffect {
discard();
return false;
}
return super.applies(permanent, source, game); //To change body of generated methods, choose Tools | Templates.
return super.applies(permanent, source, game);
}
}

View file

@ -153,6 +153,6 @@ class SirenStormtamerTargetObject extends TargetObject {
@Override
public Filter getFilter() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported yet.");
}
}

View file

@ -1386,12 +1386,12 @@ public class PlayerStub implements Player {
@Override
public PlanarDieRollResult rollPlanarDie(Outcome outcome, Ability source, Game game, int numberChaosSides, int numberPlanarSides) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public List<UUID> getTurnControllers() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported yet.");
}
@Override

View file

@ -46,7 +46,7 @@ public class TournamentStub implements Tournament {
@Override
public ResultProtos.TourneyProto toProto() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported yet.");
}
@Override

View file

@ -111,17 +111,17 @@ public class ConditionalContinuousRuleModifyingEffect extends ContinuousRuleModi
@Override
public boolean sendMessageToGameLog() {
return effect.sendMessageToGameLog(); //To change body of generated methods, choose Tools | Templates.
return effect.sendMessageToGameLog();
}
@Override
public boolean sendMessageToUser() {
return effect.sendMessageToUser(); //To change body of generated methods, choose Tools | Templates.
return effect.sendMessageToUser();
}
@Override
public String getInfoMessage(Ability source, GameEvent event, Game game) {
return effect.getInfoMessage(source, event, game); //To change body of generated methods, choose Tools | Templates.
return effect.getInfoMessage(source, event, game);
}
@Override

View file

@ -43,7 +43,7 @@ public class CantBeRegeneratedSourceEffect extends ContinuousRuleModifyingEffect
@Override
public void init(Ability source, Game game) {
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
if (duration.isOnlyValidIfNoZoneChange()) {
// If source permanent is no longer onto battlefield discard the effect
if (source.getSourcePermanentIfItStillExists(game) == null) {

View file

@ -28,7 +28,7 @@ public class PreventDamageToSourceEffect extends PreventionEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
if (duration.isOnlyValidIfNoZoneChange()) {
// If source permanent is no longer onto battlefield discard the effect
if (source.getSourcePermanentIfItStillExists(game) == null) {

View file

@ -95,7 +95,7 @@ public class BecomesColorTargetEffect extends ContinuousEffectImpl {
}
}
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
}
@Override

View file

@ -45,7 +45,7 @@ public class GainProtectionFromColorTargetEffect extends GainAbilityTargetEffect
@Override
public void init(Ability source, Game game) {
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
MageObject sourceObject = game.getObject(source);
Player controller = game.getPlayer(source.getControllerId());
if (sourceObject != null && controller != null) {

View file

@ -38,7 +38,7 @@ public class LoseAbilitySourceEffect extends ContinuousEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
if (duration.isOnlyValidIfNoZoneChange()) {
// If source permanent is no longer onto battlefield discard the effect
if (source.getSourcePermanentIfItStillExists(game) == null) {

View file

@ -30,7 +30,7 @@ public class LoseArtifactTypeTargetEffect extends ContinuousEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
if (duration.isOnlyValidIfNoZoneChange()) {
// If source permanent is no longer onto battlefield discard the effect
if (source.getSourcePermanentIfItStillExists(game) == null) {

View file

@ -43,7 +43,7 @@ public class LoseCreatureTypeSourceEffect extends ContinuousEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game); //To change body of generated methods, choose Tools | Templates.
super.init(source, game);
if (duration.isOnlyValidIfNoZoneChange()) {
// If source permanent is no longer onto battlefield discard the effect
if (source.getSourcePermanentIfItStillExists(game) == null) {

View file

@ -31,7 +31,7 @@ public class SwitchPowerToughnessSourceEffect extends ContinuousEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game); // To change body of generated methods, choose Tools | Templates.
super.init(source, game);
if (duration.isOnlyValidIfNoZoneChange()) {
// If source permanent is no longer onto battlefield discard the effect
if (source.getSourcePermanentIfItStillExists(game) == null) {

View file

@ -59,7 +59,7 @@ public class AddConditionalManaEffect extends ManaEffect {
}
return maxAvailableMana;
}
return super.getNetMana(game, source); //To change body of generated methods, choose Tools | Templates.
return super.getNetMana(game, source);
}
@Override

View file

@ -53,7 +53,7 @@ public class SoulshiftAbility extends DiesSourceTriggeredAbility {
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, intValue + 1));
filter.add(SubType.SPIRIT.getPredicate());
this.addTarget(new TargetCardInYourGraveyard(filter));
super.trigger(game, controllerId, triggeringEvent); //To change body of generated methods, choose Tools | Templates.
super.trigger(game, controllerId, triggeringEvent);
}
@Override

View file

@ -29,6 +29,6 @@ public final class EldraziScionToken extends TokenImpl {
@Override
public EldraziScionToken copy() {
return new EldraziScionToken(this); //To change body of generated methods, choose Tools | Templates.
return new EldraziScionToken(this);
}
}

View file

@ -27,6 +27,6 @@ public final class EldraziSliverToken extends TokenImpl {
@Override
public EldraziSliverToken copy() {
return new EldraziSliverToken(this); //To change body of generated methods, choose Tools | Templates.
return new EldraziSliverToken(this);
}
}

View file

@ -27,6 +27,6 @@ public final class SoldierTokenWithHaste extends TokenImpl {
@Override
public SoldierTokenWithHaste copy() {
return new SoldierTokenWithHaste(this); //To change body of generated methods, choose Tools | Templates.
return new SoldierTokenWithHaste(this);
}
}

View file

@ -1115,17 +1115,17 @@ public class Spell extends StackObjectImpl implements Card {
@Override
public List<UUID> getAttachments() {
throw new UnsupportedOperationException("Not supported."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported.");
}
@Override
public boolean addAttachment(UUID permanentId, Ability source, Game game) {
throw new UnsupportedOperationException("Not supported."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported.");
}
@Override
public boolean removeAttachment(UUID permanentId, Ability source, Game game) {
throw new UnsupportedOperationException("Not supported."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported.");
}
/**

View file

@ -521,12 +521,12 @@ public class StackAbility extends StackObjectImpl implements Ability {
@Override
public boolean activateAlternateOrAdditionalCosts(MageObject sourceObject, boolean noMana, Player controller, Game game) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public String getGameLogMessage(Game game) {
throw new UnsupportedOperationException("Not supported."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Not supported.");
}
@Override

View file

@ -48,7 +48,7 @@ public class TargetCreatureOrPlaneswalker extends TargetPermanent {
return true;
}
}
return super.isLegal(source, game); //To change body of generated methods, choose Tools | Templates.
return super.isLegal(source, game);
}
}