1
0

Fix formatting

This commit is contained in:
Gary Gregory
2023-08-22 11:00:58 -04:00
parent f674d8229e
commit eee5bef7f0
2 changed files with 6 additions and 6 deletions

View File

@@ -77,11 +77,11 @@ public class Jdk14Logger implements Log, Serializable {
final String cname = name; final String cname = name;
String method = "unknown"; String method = "unknown";
// Caller will be the third element // Caller will be the third element
if( locations != null && locations.length > 2 ) { if ( locations != null && locations.length > 2 ) {
final StackTraceElement caller = locations[2]; final StackTraceElement caller = locations[2];
method = caller.getMethodName(); method = caller.getMethodName();
} }
if( ex == null ) { if ( ex == null ) {
logger.logp( level, cname, method, msg ); logger.logp( level, cname, method, msg );
} else { } else {
logger.logp( level, cname, method, msg, ex ); logger.logp( level, cname, method, msg, ex );

View File

@@ -244,11 +244,11 @@ public class WeakHashtableTestCase extends TestCase {
int bytz = 2; int bytz = 2;
while(true) { while(true) {
System.gc(); System.gc();
if(iterations++ > MAX_GC_ITERATIONS){ if (iterations++ > MAX_GC_ITERATIONS){
fail("Max iterations reached before resource released."); fail("Max iterations reached before resource released.");
} }
if(weakHashtable.get(new Long(1)) == null) { if (weakHashtable.get(new Long(1)) == null) {
break; break;
} }
@@ -276,8 +276,8 @@ public class WeakHashtableTestCase extends TestCase {
@Override @Override
public void run() { public void run() {
for (int i = 0; i < RUN_LOOPS; i++) { for (int i = 0; i < RUN_LOOPS; i++) {
hashtable.put("key" + ":" + i%10, Boolean.TRUE); hashtable.put("key" + ":" + i % 10, Boolean.TRUE);
if(i%50 == 0) { if (i % 50 == 0) {
yield(); yield();
} }
} }