Skip to content

Commit

Permalink
Removed unnecessary semicolons from enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jan 28, 2015
1 parent 1486264 commit 7723ff2
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

protected static enum TimedOutStatus {
NOT_EXECUTED, COMPLETED, TIMED_OUT
};
}

protected final HystrixCommandMetrics metrics;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public HystrixProperty<Integer> timerDelayInMilliseconds() {
}

private static enum TestHystrixCollapserKey implements HystrixCollapserKey {
TEST;
TEST
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ConcurrentHashMap<ValueCacheKey, Observable<?>> initialValue() {
@Override
public void shutdown(ConcurrentHashMap<ValueCacheKey, Observable<?>> value) {
// nothing to shutdown
};
}

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public HystrixRequestLog initialValue() {

public void shutdown(HystrixRequestLog value) {
// nothing to shutdown
};
}

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public HystrixProperty<Integer> metricsRollingStatisticalWindowBuckets() {
}

private static enum TestThreadPoolKey implements HystrixThreadPoolKey {
TEST;
TEST
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public T initialValue() {

public void shutdown(T value) {
rv.shutdown(value);
};
}
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ public void shutdown() {
// being held in ThreadLocals on threads that weren't cleaned up
state = null;
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,15 @@ private static HystrixCircuitBreaker getCircuitBreaker(HystrixCommandKey key, Hy
}

private static enum CommandOwnerForUnitTest implements HystrixCommandGroupKey {
OWNER_ONE, OWNER_TWO;
OWNER_ONE, OWNER_TWO
}

private static enum ThreadPoolKeyForUnitTest implements HystrixThreadPoolKey {
THREAD_POOL_ONE, THREAD_POOL_TWO;
THREAD_POOL_ONE, THREAD_POOL_TWO
}

private static enum CommandKeyForUnitTest implements HystrixCommandKey {
KEY_ONE, KEY_TWO;
KEY_ONE, KEY_TWO
}

// ignoring since this never ends ... useful for testing https://github.com/Netflix/Hystrix/issues/236
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public HystrixProperty<Boolean> requestLogEnabled() {
// NOTE: We use "unitTestPrefix" as a prefix so we can't end up pulling in external properties that change unit test behavior

public enum TestKey implements HystrixCommandKey {
TEST;
TEST
}

private static class TestPropertiesCommand extends HystrixCommandProperties {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6288,15 +6288,15 @@ protected Boolean run() throws Exception {
}

enum CommandKeyForUnitTest implements HystrixCommandKey {
KEY_ONE, KEY_TWO;
KEY_ONE, KEY_TWO
}

enum CommandGroupForUnitTest implements HystrixCommandGroupKey {
OWNER_ONE, OWNER_TWO;
OWNER_ONE, OWNER_TWO
}

enum ThreadPoolKeyForUnitTest implements HystrixThreadPoolKey {
THREAD_POOL_ONE, THREAD_POOL_TWO;
THREAD_POOL_ONE, THREAD_POOL_TWO
}

private static HystrixPropertiesStrategy TEST_PROPERTIES_FACTORY = new TestPropertiesFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8085,15 +8085,15 @@ protected Observable<Boolean> construct() {
}

enum CommandKeyForUnitTest implements HystrixCommandKey {
KEY_ONE, KEY_TWO;
KEY_ONE, KEY_TWO
}

enum CommandGroupForUnitTest implements HystrixCommandGroupKey {
OWNER_ONE, OWNER_TWO;
OWNER_ONE, OWNER_TWO
}

enum ThreadPoolKeyForUnitTest implements HystrixThreadPoolKey {
THREAD_POOL_ONE, THREAD_POOL_TWO;
THREAD_POOL_ONE, THREAD_POOL_TWO
}

private static HystrixPropertiesStrategy TEST_PROPERTIES_FACTORY = new TestPropertiesFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ public void initialize() {
}

private static enum TestCommandKey implements HystrixCommandKey {
TEST_A, TEST_B;
TEST_A, TEST_B
}

private static enum TestThreadPoolKey implements HystrixThreadPoolKey {
TEST_A, TEST_B;
TEST_A, TEST_B
}

static class CustomPublisher extends HystrixMetricsPublisher{
Expand Down

0 comments on commit 7723ff2

Please sign in to comment.