Skip to content

Commit

Permalink
[enocean] Removed dependency on 'org.apache.commons.io.IOUtils'
Browse files Browse the repository at this point in the history
Relative to openhab#7722

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo committed May 22, 2020
1 parent efc84f1 commit 61e1413
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import org.apache.commons.io.IOUtils;
import org.eclipse.smarthome.core.util.HexUtils;
import org.eclipse.smarthome.io.transport.serial.PortInUseException;
import org.eclipse.smarthome.io.transport.serial.SerialPort;
Expand Down Expand Up @@ -219,11 +218,17 @@ public void ShutDown() {

if (outputStream != null) {
logger.debug("Closing serial output stream");
IOUtils.closeQuietly(outputStream);
try {
outputStream.close();
} catch (IOException e) {
}
}
if (inputStream != null) {
logger.debug("Closeing serial input stream");
IOUtils.closeQuietly(inputStream);
try {
inputStream.close();
} catch (IOException e) {
}
}

if (serialPort != null) {
Expand Down

0 comments on commit 61e1413

Please sign in to comment.