Skip to content
Snippets Groups Projects
Commit 0c279d26 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Fix compiler warnings and error

parent 88942397
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ import org.springframework.expression.common.TemplateParserContext
import org.springframework.expression.spel.standard.SpelExpressionParser
import org.springframework.expression.spel.support.StandardEvaluationContext
import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters._
class ModernCartDesignHandlerImpl extends ModernCartDesignHandler {
......
......@@ -21,7 +21,7 @@ import org.springframework.expression.common.TemplateParserContext
import org.springframework.expression.spel.standard.SpelExpressionParser
import org.springframework.expression.spel.support.StandardEvaluationContext
import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters._
class ModernGlobalDesignHandlerImpl extends ModernGlobalDesignHandler with ColorModeHandler {
......
package de.tobias.playpad.midi;
import de.thecodelabs.logger.Logger;
import de.tobias.playpad.action.mididevice.MidiDeviceImpl;
import de.tobias.playpad.midi.device.DeviceRegistry;
import javax.sound.midi.*;
import javax.sound.midi.MidiDevice.Info;
import java.lang.reflect.InvocationTargetException;
public class Midi implements AutoCloseable {
......@@ -92,8 +94,8 @@ public class Midi implements AutoCloseable {
// Hier wird die DeviceImpl aufgerufen
try {
this.midiMidiDeviceImplImpl = DeviceRegistry.getFactoryInstance().getDevice(input.getName());
} catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
Logger.error(e);
}
setupMidiDevice();
}
......@@ -143,7 +145,7 @@ public class Midi implements AutoCloseable {
try {
listener.onMidiAction(msg);
} catch (Exception e) {
e.printStackTrace();
Logger.error(e);
}
}
......@@ -157,7 +159,7 @@ public class Midi implements AutoCloseable {
return inputDevice != null && outputDevice != null && inputDevice.isOpen() && outputDevice.isOpen();
}
public void sendClearCommand() throws InvalidMidiDataException, MidiUnavailableException {
public void sendClearCommand() {
if (midiMidiDeviceImplImpl != null) {
midiMidiDeviceImplImpl.clearFeedback();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment