| 1 | /** | |
| 2 | * SpamSchutz - simple way to protect your mail addresses from naïve spammers | |
| 3 | * Copyright (C) 2011, Aiki IT | |
| 4 | * <p> | |
| 5 | * This program is free software: you can redistribute it and/or modify | |
| 6 | * it under the terms of the GNU General Public License as published by | |
| 7 | * the Free Software Foundation, either version 3 of the License, or | |
| 8 | * (at your option) any later version. | |
| 9 | * <p> | |
| 10 | * This program is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU General Public License for more details. | |
| 14 | * <p> | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | */ | |
| 18 | package de.aikiit.spamprotector; | |
| 19 | ||
| 20 | import lombok.AccessLevel; | |
| 21 | import lombok.NoArgsConstructor; | |
| 22 | ||
| 23 | import javax.swing.JFrame; | |
| 24 | import javax.swing.SwingUtilities; | |
| 25 | import javax.swing.WindowConstants; | |
| 26 | import java.awt.Dimension; | |
| 27 | ||
| 28 | import static de.aikiit.spamprotector.util.LocalizationHelper.getBundleString; | |
| 29 | ||
| 30 | /** | |
| 31 | * Application starter class. | |
| 32 | */ | |
| 33 | @NoArgsConstructor(access = AccessLevel.PRIVATE) | |
| 34 | public final class AntiSpamApplication { | |
| 35 | ||
| 36 | /** | |
| 37 | * Helper that starts and initializes the application itself. | |
| 38 | */ | |
| 39 | private static void initApplication() { | |
| 40 |
1
1. initApplication : removed call to javax/swing/SwingUtilities::invokeLater → NO_COVERAGE |
SwingUtilities.invokeLater( |
| 41 | () -> { | |
| 42 | JFrame frame = new JFrame(); | |
| 43 | GUI g = new GUI(); | |
| 44 |
1
1. lambda$initApplication$0 : removed call to javax/swing/JFrame::setTitle → NO_COVERAGE |
frame.setTitle(getBundleString("spamschutz.main.title")); |
| 45 |
1
1. lambda$initApplication$0 : removed call to javax/swing/JFrame::setDefaultCloseOperation → NO_COVERAGE |
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
| 46 |
1
1. lambda$initApplication$0 : removed call to javax/swing/JFrame::setSize → NO_COVERAGE |
frame.setSize(new Dimension(800, 300)); |
| 47 | frame.add(g); | |
| 48 |
1
1. lambda$initApplication$0 : removed call to javax/swing/JFrame::setVisible → NO_COVERAGE |
frame.setVisible(true); |
| 49 | } | |
| 50 | ); | |
| 51 | } | |
| 52 | ||
| 53 | /** | |
| 54 | * Main method that loads the application in a proper size. | |
| 55 | * | |
| 56 | * @param args Arguments from console. | |
| 57 | */ | |
| 58 | public static void main(final String[] args) { | |
| 59 |
1
1. main : removed call to de/aikiit/spamprotector/AntiSpamApplication::initApplication → NO_COVERAGE |
initApplication(); |
| 60 | } | |
| 61 | } | |
Mutations | ||
| 40 |
1.1 |
|
| 44 |
1.1 |
|
| 45 |
1.1 |
|
| 46 |
1.1 |
|
| 48 |
1.1 |
|
| 59 |
1.1 |