GeezerVison is showing github.com — Fix PMD violations #327 · coding0011/java-design-patterns@5f033be
File tree
Expand file treeCollapse file tree
Open diff view settings
adapter/src/test/java/com/iluwatar/adapter async-method-invocation/src main/java/com/iluwatar/async/method/invocation test/java/com/iluwatar/async/method/invocation
bridge/src/test/java/com/iluwatar/bridge builder/src/test/java/com/iluwatar/builder callback/src/main/java/com/iluwatar/callback chain/src/test/java/com/iluwatar/chain composite/src/test/java/com/iluwatar/composite dao/src/main/java/com/iluwatar/dao decorator/src/test/java/com/iluwatar/decorator dependency-injection/src/test/java/com/iluwatar/dependency/injection double-checked-locking/src main/java/com/iluwatar/doublechecked/locking test/java/com/iluwatar/doublechecked/locking
double-dispatch/src/test/java/com/iluwatar/doubledispatch event-aggregator/src/test/java/com/iluwatar/event/aggregator execute-around/src/test/java/com/iluwatar/execute/around facade/src/test/java/com/iluwatar/facade main/java/com/iluwatar/fluentinterface test/java/com/iluwatar/fluentinterface
main/java/com/iluwatar/flux/view test/java/com/iluwatar/flux
flyweight/src/test/java/com/iluwatar/flyweight front-controller/src/test/java/com/iluwatar/front/controller half-sync-half-async/src/test/java/com/iluwatar/halfsynchalfasync main/java/com/iluwatar/intercepting/filter test/java/com/iluwatar/intercepting/filter
interpreter/src/test/java/com/iluwatar/interpreter iterator/src/test/java/com/iluwatar/iterator layers/src/test/java/com/iluwatar/layers lazy-loading/src/test/java/com/iluwatar/lazy/loading mediator/src/test/java/com/iluwatar/mediator memento/src/test/java/com/iluwatar/memento model-view-controller/src/test/java/com/iluwatar/model/view/controller main/java/com/iluwatar/model/view/presenter test/java/com/iluwatar/model/view/presenter
monostate/src/test/java/com/iluwatar/monostate multiton/src/test/java/com/iluwatar/multiton null-object/src/test/java/com/iluwatar/nullobject object-pool/src/test/java/com/iluwatar/object/pool observer/src/test/java/com/iluwatar/observer main/java/com/iluwatar/poison/pill test/java/com/iluwatar/poison/pill
private-class-data/src/test/java/com/iluwatar/privateclassdata producer-consumer/src/test/java/com/iluwatar/producer/consumer main/java/com/iluwatar/property test/java/com/iluwatar/property
main/java/com/iluwatar/prototype test/java/com/iluwatar/prototype
proxy/src/test/java/com/iluwatar/proxy repository/src/main/java/com/iluwatar/repository resource-acquisition-is-initialization/src/test/java/com/iluwatar/resource/acquisition/is/initialization main/java/com/iluwatar/servant test/java/com/iluwatar/servant
service-layer/src/test/java/com/iluwatar/servicelayer/app service-locator/src/test/java/com/iluwatar/servicelocator singleton/src/test/java/com/iluwatar/singleton specification/src/test/java/com/iluwatar/specification/app state/src/test/java/com/iluwatar/state strategy/src/test/java/com/iluwatar/strategy template-method/src/test/java/com/iluwatar/templatemethod main/java/com/iluwatar/threadpool test/java/com/iluwatar/threadpool
tolerant-reader/src/test/java/com/iluwatar/tolerantreader visitor/src/test/java/com/iluwatar/visitor
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss bannerExpand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: adapter/src/test/java/com/iluwatar/adapter/AdapterPatternTest.java +4-9Lines changed: 4 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | package com.iluwatar.adapter; |
2 | 2 |
|
3 | | -import static org.mockito.Mockito.spy; |
4 | | -import static org.mockito.Mockito.verify; |
| 3 | +import org.junit.Before; |
| 4 | +import org.junit.Test; |
5 | 5 |
|
6 | 6 | import java.util.HashMap; |
7 | 7 | import java.util.Map; |
8 | 8 |
|
9 | | -import org.junit.Before; |
10 | | -import org.junit.Test; |
11 | | - |
12 | | -import com.iluwatar.adapter.BattleFishingBoat; |
13 | | -import com.iluwatar.adapter.BattleShip; |
14 | | -import com.iluwatar.adapter.Captain; |
15 | | -import com.iluwatar.adapter.FishingBoat; |
| 9 | +import static org.mockito.Mockito.spy; |
| 10 | +import static org.mockito.Mockito.verify; |
16 | 11 |
|
17 | 12 | /** |
18 | 13 | * Test class |
|
Collapse file
Copy file name to clipboardExpand all lines: async-method-invocation/src/main/java/com/iluwatar/async/method/invocation/ThreadAsyncExecutor.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -102,7 +102,7 @@ void setException(Exception exception) { |
102 | 102 |
|
103 | 103 | @Override |
104 | 104 | public boolean isCompleted() { |
105 | | - return (state > RUNNING); |
| 105 | + return state > RUNNING; |
106 | 106 | } |
107 | 107 |
|
108 | 108 | @Override |
|
Collapse file
Copy file name to clipboardExpand all lines: async-method-invocation/src/test/java/com/iluwatar/async/method/invocation/ThreadAsyncExecutorTest.java +2-12Lines changed: 2 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | import java.util.concurrent.Callable; |
9 | 9 | import java.util.concurrent.ExecutionException; |
10 | 10 |
|
11 | | -import static org.junit.Assert.assertEquals; |
12 | | -import static org.junit.Assert.assertFalse; |
13 | | -import static org.junit.Assert.assertNotNull; |
14 | | -import static org.junit.Assert.assertSame; |
15 | | -import static org.junit.Assert.assertTrue; |
16 | | -import static org.junit.Assert.fail; |
| 11 | +import static org.junit.Assert.*; |
17 | 12 | import static org.mockito.Matchers.eq; |
18 | | -import static org.mockito.Mockito.mock; |
19 | | -import static org.mockito.Mockito.timeout; |
20 | | -import static org.mockito.Mockito.verify; |
21 | | -import static org.mockito.Mockito.verifyNoMoreInteractions; |
22 | | -import static org.mockito.Mockito.verifyZeroInteractions; |
23 | | -import static org.mockito.Mockito.when; |
| 13 | +import static org.mockito.Mockito.*; |
24 | 14 | import static org.mockito.internal.verification.VerificationModeFactory.times; |
25 | 15 |
|
26 | 16 | /** |
|
Collapse file
Copy file name to clipboardExpand all lines: bridge/src/test/java/com/iluwatar/bridge/AppTest.java -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import org.junit.Test; |
4 | 4 |
|
5 | | -import com.iluwatar.bridge.App; |
6 | | - |
7 | 5 | /** |
8 | 6 | * |
9 | 7 | * Application test |
|
Collapse file
Copy file name to clipboardExpand all lines: builder/src/test/java/com/iluwatar/builder/AppTest.java -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import org.junit.Test; |
4 | 4 |
|
5 | | -import com.iluwatar.builder.App; |
6 | | - |
7 | 5 | /** |
8 | 6 | * |
9 | 7 | * Application test |
|
Collapse file
Copy file name to clipboardExpand all lines: callback/src/main/java/com/iluwatar/callback/Callback.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | */ |
8 | 8 | public interface Callback { |
9 | 9 |
|
10 | | - public void call(); |
| 10 | + void call(); |
11 | 11 | } |
Collapse file
Copy file name to clipboardExpand all lines: chain/src/test/java/com/iluwatar/chain/AppTest.java -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import org.junit.Test; |
4 | 4 |
|
5 | | -import com.iluwatar.chain.App; |
6 | | - |
7 | 5 | /** |
8 | 6 | * |
9 | 7 | * Application test |
|
Collapse file
Copy file name to clipboardExpand all lines: composite/src/test/java/com/iluwatar/composite/AppTest.java -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import org.junit.Test; |
4 | 4 |
|
5 | | -import com.iluwatar.composite.App; |
6 | | - |
7 | 5 | /** |
8 | 6 | * |
9 | 7 | * Application test |
|
Collapse file
Copy file name to clipboardExpand all lines: dao/src/main/java/com/iluwatar/dao/Customer.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,7 @@ public boolean equals(final Object o) { |
55 | 55 | boolean isEqual = false; |
56 | 56 | if (this == o) { |
57 | 57 | isEqual = true; |
58 | | - } else if (o != null && (getClass() == o.getClass())) { |
| 58 | + } else if (o != null && getClass() == o.getClass()) { |
59 | 59 | final Customer customer = (Customer) o; |
60 | 60 | if (getId() == customer.getId()) { |
61 | 61 | isEqual = true; |
|
Collapse file
Copy file name to clipboardExpand all lines: decorator/src/test/java/com/iluwatar/decorator/AppTest.java -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import org.junit.Test; |
4 | 4 |
|
5 | | -import com.iluwatar.decorator.App; |
6 | | - |
7 | 5 | /** |
8 | 6 | * |
9 | 7 | * Application test |
|