Skip to content

Commit 4500bb4

Browse files
committed
Fix typos
1 parent f14cf4e commit 4500bb4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

java-does-usb/jextract/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The resulting code is then committed to the source code repository. Before the c
1717

1818
- According to the jextract mailing list, it would be required to create separate code form Intel x64 and ARM64 architecture. And jextract would need to be run on each architecture separately (no cross-compilation). Fortunately, this doesn't seem to be the case. Linux code generated on Intel x64 also runs on ARM64 without change. The same holds for macOS. However, jextract needs to be run on each operating system separately.
1919

20-
- JDK 20 introduced a new feature for saving the thread-specific error values (`GetLastError()` on Windows, `errno` on Linux). To use it, an additional parameter must be added to function calls. Unfortuntely, this is not yet supported by jextract. So with the JDK 20 updates, more code is written manually and less is generated by jextract.
20+
- JDK 20 introduced a new feature for saving the thread-specific error values (`GetLastError()` on Windows, `errno` on Linux). To use it, an additional parameter must be added to function calls. Unfortunately, this is not yet supported by jextract. So with the JDK 20 updates, more code is written manually and less is generated by jextract.
2121

2222
- `typedef` and `struct`:
2323

@@ -98,7 +98,7 @@ The known limitations are:
9898

9999
*jextract* generates a comprehensive set of methods for each function, struct, struct member etc. Most of it will not be used as a typical application just uses a subset of struct members, might only read or write them etc. So a considerable amount of code is generated. For some types, it's a bit excessive.
100100

101-
The worst example is [`IOUSBInterfaceStruct100`](https://github.com/manuelbl/JavaDoesUSB/blob/main/java-does-usb/src/main/java/net/codecrete/usb/macos/gen/iokit/IOUSBDeviceStruct100.java) (macOS). This is a `struct` consisting of about 75 member functions. It's bascially a vtable of a C++ class. *jextract* generates the same number of classes plus a huge class for the struct itself. The total code size (compiled) for this single `struct` is over 300 kByte.
101+
The worst example is [`IOUSBInterfaceStruct100`](https://github.com/manuelbl/JavaDoesUSB/blob/main/java-does-usb/src/main/java/net/codecrete/usb/macos/gen/iokit/IOUSBDeviceStruct100.java) (macOS). This is a `struct` consisting of about 75 member functions. It's basically a vtable of a C++ class. *jextract* generates the same number of classes plus a huge class for the struct itself. The total code size (compiled) for this single `struct` is over 300 kByte.
102102

103103
The table below shows statictics for version 0.2.0 of the library:
104104

java-does-usb/src/main/java/net/codecrete/usb/USBEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public interface USBEndpoint {
2424
* </p>
2525
* <p>
2626
* Use this number when calling any of the transfer methods of a
27-
* {@link USBDevice} instace.
27+
* {@link USBDevice} instance.
2828
* </p>
2929
*
3030
* @return the endpoint number

java-does-usb/src/main/java/net/codecrete/usb/macos/MacosUSBDevice.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* asynchronous transfer and waiting for the completion.
4444
* </p>
4545
*/
46+
@SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
4647
public class MacosUSBDevice extends USBDeviceImpl {
4748

4849
private final MacosAsyncTask asyncTask;

0 commit comments

Comments
 (0)