Buggy code:
public class Controller { private MainView mainView ; private EditCardsView editCardsView ; private LearningView learningView ; private Register register ; private Card editCardsCard ; private Card learningCard ; private ArrayList < Card > editCardsAllCards ; private ArrayList < Card > learningCardsOfABox ; private int index ; private TranslationDataSet translate ; public Controller ( MainView mainView , EditCardsView editCardsView , LearningView learningView , Register register ) { } private void addListener ( ) { } public class MyMenuActionListener implements ActionListener { public String command ; public MyMenuActionListener ( String command ) { } public void setCommand ( String command ) { } @ Override public void actionPerformed ( ActionEvent e ) { } private void exportSelected ( ) { } private void importSelected ( ) { } private void resetLearningStatusSelected ( ) { try { register . resetRegister ( ) ; editCardsAllCards = register . getSortedCardsByCardID ( ) ; editCardsCard = editCardsAllCards . get ( 0 ) ; editCardsView . displayCard ( editCardsCard ) ; learningCardsOfABox = register . getCardsByBox ( 1 ) ; } catch ( Exception e1 ) { mainView . displayErrorMessage ( e1 . getMessage ( ) ) ; } learningView . setTargetBox ( 0 ) ; editCardsView . setStateSaveButton ( false ) ; learningView . activateProgressBarThread ( ) ; learningView . initializeWithData ( register . getBoxes ( ) , register ) ; learningView . setStatistics ( learningCardsOfABox . size ( ) , register . getNumberOfCards ( ) , 0 , 0 ) ; register . setHasChanged ( true ) ; <START_BUG> mainView . displayErrorMessage ( "Alle<seq2seq4repair_space>Karten<seq2seq4repair_space>wurden<seq2seq4repair_space>zurückgesetzt." ) ; <END_BUG> } private void startLearningSelected ( ) { } private void editCardsSelected ( ) { } } public class MeinButtonActionListener implements ActionListener { @ Override public void actionPerformed ( ActionEvent e ) { } private void forwardSelected ( ) { } private void correctOrWrongSelected ( ActionEvent e ) { } private void frontSelected ( ) { } private void deleteSelected ( ) { } private void newSelected ( ) { } private void navBack ( ) { } private boolean cardWantsToBeDeleted ( ) { } private void saveSelected ( ) { } private boolean continueWithoutSaving ( ) { } } public class MyComboboxItemListener implements ItemListener { @ Override public void itemStateChanged ( ItemEvent arg0 ) { } } public void refreshLearningData ( ArrayList < Card > cardsOfABox ) { } private void actionPerformedBeenden ( ) { } public class MyWindowListener implements WindowListener { @ Override public void windowActivated ( WindowEvent e ) { } @ Override public void windowClosed ( WindowEvent e ) { } @ Override public void windowClosing ( WindowEvent e ) { } @ Override public void windowDeactivated ( WindowEvent e ) { } @ Override public void windowDeiconified ( WindowEvent e ) { } @ Override public void windowIconified ( WindowEvent e ) { } @ Override public void windowOpened ( WindowEvent e ) { } } public int getCalculateNumberForProgressBar ( ) { } public class MyKeyListener implements KeyListener { @ Override public void keyPressed ( KeyEvent arg0 ) { } public void keyReleased ( KeyEvent arg0 ) { } public void keyTyped ( KeyEvent arg0 ) { } } No newline ; at end ; of file ; }

Fix:
mainView . displayErrorMessage ( translate . getTranslatedText ( "Alle<seq2seq4repair_space>Karten<seq2seq4repair_space>wurden<seq2seq4repair_space>zurückgesetzt." , Deutsch , mainView . getCurrentLanguage ( ) ) ) ;