package rod;

public class DummyAnalyzer implements Analyzer {

    private ObservationToCommandMapping observationToCommand;

    public void setObservationToCommand(ObservationToCommandMapping observationToCommand) {
        this.observationToCommand = observationToCommand;
    }

    @Override
    public Command analyze(Observation observation) throws UnrecognizableObservationException {
        if (observationToCommand.containsKey(observation.getClass())) {
            return observationToCommand.get(observation.getClass()).build();
        } else {
            throw new UnrecognizableObservationException(observation);
        }
    }

}

package rod;

public class DummyAnalyzer implements Analyzer {

    private ObservationToCommandMapping observationToCommand;

    public void setObservationToCommand(final ObservationToCommandMapping observationToCommand) {
        this.observationToCommand = observationToCommand;
    }

    @Override
    public Command analyze(final Observation observation) throws UnrecognizableObservationException {
        if (observationToCommand.containsKey(observation.getClass())) {
            return observationToCommand.get(observation.getClass()).build();
        } else {
            throw new UnrecognizableObservationException(observation);
        }
    }

}

Add final to method parameters
Add final to method parameters
