You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/12/30 18:46:08 UTC

[commons-lang] branch master updated: Sort members.

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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new de7b773  Sort members.
de7b773 is described below

commit de7b773087a4b11c5263998625ce07cf202db08d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Dec 30 13:46:05 2019 -0500

    Sort members.
---
 .../org/apache/commons/lang3/time/StopWatch.java   | 29 +++++++++++-----------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/time/StopWatch.java b/src/main/java/org/apache/commons/lang3/time/StopWatch.java
index 876b2ed..3936b82 100644
--- a/src/main/java/org/apache/commons/lang3/time/StopWatch.java
+++ b/src/main/java/org/apache/commons/lang3/time/StopWatch.java
@@ -66,26 +66,11 @@ public class StopWatch {
         UNSPLIT
     }
 
-
     /**
      * Enumeration type which indicates the status of stopwatch.
      */
     private enum State {
 
-        UNSTARTED {
-            @Override
-            boolean isStarted() {
-                return false;
-            }
-            @Override
-            boolean isStopped() {
-                return true;
-            }
-            @Override
-            boolean isSuspended() {
-                return false;
-            }
-        },
         RUNNING {
             @Override
             boolean isStarted() {
@@ -127,6 +112,20 @@ public class StopWatch {
             boolean isSuspended() {
                 return true;
             }
+        },
+        UNSTARTED {
+            @Override
+            boolean isStarted() {
+                return false;
+            }
+            @Override
+            boolean isStopped() {
+                return true;
+            }
+            @Override
+            boolean isSuspended() {
+                return false;
+            }
         };
 
         /**