This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-logging.git
The following commit(s) were added to refs/heads/master by this push: new eee5bef Fix formatting eee5bef is described below commit eee5bef7f09fd52a8e430afef0b154f3ee4e9f8d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Aug 22 11:00:58 2023 -0400 Fix formatting --- src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java | 4 ++-- .../org/apache/commons/logging/impl/WeakHashtableTestCase.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java b/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java index 8447065..2eb00ec 100644 --- a/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java +++ b/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java @@ -77,11 +77,11 @@ public class Jdk14Logger implements Log, Serializable { final String cname = name; String method = "unknown"; // Caller will be the third element - if( locations != null && locations.length > 2 ) { + if ( locations != null && locations.length > 2 ) { final StackTraceElement caller = locations[2]; method = caller.getMethodName(); } - if( ex == null ) { + if ( ex == null ) { logger.logp( level, cname, method, msg ); } else { logger.logp( level, cname, method, msg, ex ); diff --git a/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java b/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java index 708ac22..03fb52b 100644 --- a/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java +++ b/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java @@ -244,11 +244,11 @@ public class WeakHashtableTestCase extends TestCase { int bytz = 2; while(true) { System.gc(); - if(iterations++ > MAX_GC_ITERATIONS){ + if (iterations++ > MAX_GC_ITERATIONS){ fail("Max iterations reached before resource released."); } - if(weakHashtable.get(new Long(1)) == null) { + if (weakHashtable.get(new Long(1)) == null) { break; } @@ -276,8 +276,8 @@ public class WeakHashtableTestCase extends TestCase { @Override public void run() { for (int i = 0; i < RUN_LOOPS; i++) { - hashtable.put("key" + ":" + i%10, Boolean.TRUE); - if(i%50 == 0) { + hashtable.put("key" + ":" + i % 10, Boolean.TRUE); + if (i % 50 == 0) { yield(); } }