Skip to content

Commit

Permalink
Make new locks final
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed Mar 15, 2024
1 parent 9738b65 commit 1733689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -112,7 +112,7 @@ public void reset() {
public InputStream open() {
//noinspection NullableProblems
return new InputStream() {
private Lock markLock = new ReentrantLock();
private final Lock markLock = new ReentrantLock();

@Override
public int read() throws IOException {
Expand Down
Expand Up @@ -58,7 +58,7 @@ public final class WadlResource {

private byte[] wadlXmlRepresentation;
private String lastModified;
private Lock lock = new ReentrantLock();
private final Lock lock = new ReentrantLock();

@Context
private WadlApplicationContext wadlContext;
Expand Down

0 comments on commit 1733689

Please sign in to comment.