You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2013/01/10 16:38:58 UTC

svn commit: r1431438 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java

Author: ggregory
Date: Thu Jan 10 15:38:58 2013
New Revision: 1431438

URL: http://svn.apache.org/viewvc?rev=1431438&view=rev
Log:
Convert control statement bodies to block.

Modified:
    logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java?rev=1431438&r1=1431437&r2=1431438&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java (original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java Thu Jan 10 15:38:58 2013
@@ -229,15 +229,27 @@ public class Timer implements Serializab
 
     @Override
     public boolean equals(final Object o) {
-        if (this == o) return true;
-        if (!(o instanceof Timer)) return false;
+        if (this == o) {
+            return true;
+        }
+        if (!(o instanceof Timer)) {
+            return false;
+        }
 
         final Timer timer = (Timer) o;
 
-        if (m_elapsedTime != timer.m_elapsedTime) return false;
-        if (m_startTime != timer.m_startTime) return false;
-        if (m_name != null ? !m_name.equals(timer.m_name) : timer.m_name != null) return false;
-        if (m_status != null ? !m_status.equals(timer.m_status) : timer.m_status != null) return false;
+        if (m_elapsedTime != timer.m_elapsedTime) {
+            return false;
+        }
+        if (m_startTime != timer.m_startTime) {
+            return false;
+        }
+        if (m_name != null ? !m_name.equals(timer.m_name) : timer.m_name != null) {
+            return false;
+        }
+        if (m_status != null ? !m_status.equals(timer.m_status) : timer.m_status != null) {
+            return false;
+        }
 
         return true;
     }