java: fixes from the CI bots

This commit is contained in:
yoff
2025-10-09 09:37:31 +02:00
parent 93fc287ef1
commit 830f02af1f
4 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
// If the variable is involved in several different monitors, we get an alert for each monitor that
// is not correctly used.
// A single alert can have many related locations, since each conflicting access which is not
// prpoerly synchronized is a related location.
// properly synchronized is a related location.
// This leads to many lines in the .expected file.
package examples;

View File

@@ -5,14 +5,14 @@ import java.util.concurrent.locks.ReentrantLock;
@ThreadSafe
public class Test {
/**
* Escaping field due to public visuability.
* Escaping field due to public visibility.
*/
int publicField;
private int y;
final int immutableField = 1;
// As of the below examples with synchronized as well. Except the incorretly placed lock.
// As of the below examples with synchronized as well. Except the incorrectly placed lock.
private Lock lock = new ReentrantLock();
@@ -53,7 +53,7 @@ public class Test {
}
/**
* Incorretly locks y.
* Incorrectly locks y.
* @param y
*/
public void setYWrongLock(int y) {