logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1431438 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/Timer.java
Date Thu, 10 Jan 2013 15:38:58 GMT
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;
     }



Mime
View raw message