Content of file DilemmaBasicGameBuilderFactoryImpl.java /*
* Copyright © 2021 Fachhochschule für die Wirtschaft (FHDW) Hannover
*
* This file is part of ipspiel21-dilemma.
*
* Ipspiel21-dil is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* Ipspiel21-dil is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with ipspiel21-dilemma. If not, see
* <http://www.gnu.org/licenses/>.
*/
package de.fhdw.gaming.ipspiel21.dilemmaBasic;
import de.fhdw.gaming.core.ui.InputProvider;
import de.fhdw.gaming.core.ui.InputProviderException;
import de.fhdw.gaming.ipspiel21.dilemmaOriginal.domain.impl.DilemmaGameBuilderFactoryImpl;
/**
* Extends {@link DilemmaGameBuilderFactoryImpl}.
*/
public class DilemmaBasicGameBuilderFactoryImpl extends DilemmaGameBuilderFactoryImpl {
@Override
public InputProvider extendInputProvider(InputProvider inputProvider ) throws InputProviderException {
A method argument that is never re-assigned within the method can be declared final.
public void foo1 (String param) { // do stuff with param never assigning it
}
public void foo2 (final String param) { // better, do stuff with param never assigning it
}
See PMD documentation.
return inputProvider;
}
}