Skip to content

Commit fbbf783

Browse files
committed
Do not review: induced spotbugs for checking in CI
1 parent a6ed8bc commit fbbf783

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tez-api/src/main/java/org/apache/tez/common/CachedEntity.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ public void setValue(T newEntry) {
7979
}
8080
entryTimeStamp = cacheClock.getTime();
8181
}
82+
public void test321() {
83+
String a = new String("hello");
84+
String b = new String("hello");
85+
if (a == b) {
86+
System.out.println("Strings are equal");
87+
}
88+
}
89+
90+
public void test123() {
91+
final Object lock = new Object();
92+
synchronized (lock) {
93+
// SpotBugs will complain about empty synchronized block
94+
}
95+
}
8296

8397
/**
8498
* Enforces the expiration of the cached entry.

0 commit comments

Comments
 (0)