Skip to content

Commit

Permalink
Checkstyle and revert a JDK9 diamond
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwiddis committed Nov 20, 2023
1 parent 6cb74cb commit d191233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/com/sun/jna/Structure.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public Pointer getPointer() {

// Keep track of ByReference reads to avoid redundant reads of the same
// address
private static final ThreadLocal<Map<Pointer, Structure>> reads = new ThreadLocal<>() {
private static final ThreadLocal<Map<Pointer, Structure>> reads = new ThreadLocal<Map<Pointer, Structure>>() {
@Override
protected synchronized Map<Pointer, Structure> initialValue() {
return new HashMap<>();
Expand Down
4 changes: 2 additions & 2 deletions test/com/sun/jna/NativeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ public void testGetBytesWithCharset() throws Exception {

public void testGetBytesBadEncoding() throws Exception {
byte[] buf = Native.getBytes(getName(), "unsupported");
assertEquals("Incorrect fallback bytes with bad encoding",
getName(), new String(buf, Charset.defaultCharset().displayName()));
assertEquals("Incorrect fallback bytes with bad encoding", getName(),
new String(buf, Charset.defaultCharset().displayName()));
}

public void testFindDirectMappedClassFailure() {
Expand Down

0 comments on commit d191233

Please sign in to comment.