removing unnecessary condition
L152, null checking for initialized final field
@@ -149,7 +149,6 @@ public enum CopyPasteImageSource implements CardImageSource {
viewMissingCards = false;
String displayMissingCardsStr = "Up to the first 20 cards are:\n";
String missingCardsStr = "";
- if (this.missingCards != null) {
for (String card : this.missingCards) {
if (count < 20) {
displayMissingCardsStr = displayMissingCardsStr + card + "\n";
@@ -158,7 +157,6 @@ public enum CopyPasteImageSource implements CardImageSource {
count++;
}
- }
StringSelection stringSelection = new StringSelection(missingCardsStr);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(stringSelection, null);
