Skip to content

Commit f7b1412

Browse files
committed
Code Style
1 parent ef8999f commit f7b1412

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

gwtp-core/gwtp-dispatch-common-client/src/main/java/com/gwtplatform/dispatch/client/gin/AbstractDispatchAsyncModule.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030

3131
/**
3232
* This gin module provides provides access to the dispatcher singleton, which is used to make calls to the server.
33-
* This
34-
* module requires an {@link ExceptionHandler}, a {@link DefaultClientActionHandlerRegistry} and a
33+
* This module requires an {@link ExceptionHandler}, a {@link DefaultClientActionHandlerRegistry} and a
3534
* {@link SecurityCookieAccessor}. By default, these will be bound to {@link DefaultExceptionHandler},
3635
* {@link DefaultClientActionHandlerRegistry} and {@link DefaultSecurityCookieAccessor} respectively.
3736
* <p/>

gwtp-core/gwtp-tester/src/main/java/com/gwtplatform/tester/MockHandlerModule.java

+9-4
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@
9696
* any(ClientDispatchRequest.class), any(ExecuteCommand.class));
9797
*
9898
* </pre>
99+
*
100+
* @author Brendan Doherty
99101
*/
100102
public abstract class MockHandlerModule extends AbstractModule {
103+
101104
private static class MockClientActionHandlerMapImpl<A extends Action<R>, R extends Result>
102105
implements MockClientActionHandlerMap {
103106

@@ -188,9 +191,11 @@ protected <A extends Action<R>, R extends Result, H extends ActionHandler<A, R>>
188191
* @param mockHandler Instance of the {@link ActionHandler} to execute
189192
* actions of type {@literal <A>}
190193
*/
191-
protected <A extends Action<R>, R extends Result, H extends AbstractClientActionHandler<A,R>>
192-
void bindMockClientActionHandler(Class<A> actionClass, H mockHandler) {
193-
bind(MockClientActionHandlerMap.class).annotatedWith(UniqueAnnotations.create())
194-
.toInstance(new MockClientActionHandlerMapImpl<A, R>(actionClass, mockHandler));
194+
protected <A extends Action<R>, R extends Result, H extends AbstractClientActionHandler<A,
195+
R>> void bindMockClientActionHandler(
196+
Class<A> actionClass, H mockHandler) {
197+
bind(MockClientActionHandlerMap.class).annotatedWith(
198+
UniqueAnnotations.create()).toInstance(
199+
new MockClientActionHandlerMapImpl<A, R>(actionClass, mockHandler));
195200
}
196201
}

0 commit comments

Comments
 (0)