Skip to content

Commit edd78e2

Browse files
committed
Revert some irrelevant changes.
1 parent 24f59c3 commit edd78e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/jssc/SerialPort.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ public boolean writeBytes1(byte[] buffer) throws SerialPortException {
428428
*/
429429
public int writeBytes(byte[] buffer) throws SerialPortException {
430430
checkPortOpened("writeBytes()");
431-
try{
431+
try {
432432
return serialInterface.writeBytes(portHandle, buffer);
433-
}catch( IOException ex ){
434-
throw wrapNativeException(ex, this, "writeBytes");
433+
} catch(IOException ex) {
434+
throw SerialPortException.wrapNativeException(ex, this, "writeBytes");
435435
}
436436
}
437437

0 commit comments

Comments
 (0)