Skip to content

Commit 695ee06

Browse files
author
Zsolt Mészárovics
committed
review: removed unnecessary generics
1 parent cbecc00 commit 695ee06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hystrix-contrib/hystrix-javanica/src/main/java/com/netflix/hystrix/contrib/javanica/command/AbstractHystrixCommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ boolean isIgnorable(Throwable throwable) {
139139
* @param action the action
140140
* @return result of command action execution
141141
*/
142-
<ReturnType> ReturnType process(Action<ReturnType> action) throws Exception {
143-
ReturnType result;
142+
Object process(Action action) throws Exception {
143+
Object result;
144144
try {
145145
result = action.execute();
146146
flushCache();
@@ -187,14 +187,14 @@ protected void flushCache() {
187187
/**
188188
* Common action.
189189
*/
190-
abstract class Action<ReturnType> {
190+
abstract class Action {
191191
/**
192192
* Each implementation of this method should wrap any exceptions in CommandActionExecutionException.
193193
*
194194
* @return execution result
195195
* @throws CommandActionExecutionException
196196
*/
197-
abstract ReturnType execute() throws CommandActionExecutionException;
197+
abstract Object execute() throws CommandActionExecutionException;
198198
}
199199

200200

0 commit comments

Comments
 (0)