Skip to content

Commit

Permalink
review: removed unnecessary generics
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsolt Mészárovics committed Sep 2, 2016
1 parent cbecc00 commit 695ee06
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ boolean isIgnorable(Throwable throwable) {
* @param action the action
* @return result of command action execution
*/
<ReturnType> ReturnType process(Action<ReturnType> action) throws Exception {
ReturnType result;
Object process(Action action) throws Exception {
Object result;
try {
result = action.execute();
flushCache();
Expand Down Expand Up @@ -187,14 +187,14 @@ protected void flushCache() {
/**
* Common action.
*/
abstract class Action<ReturnType> {
abstract class Action {
/**
* Each implementation of this method should wrap any exceptions in CommandActionExecutionException.
*
* @return execution result
* @throws CommandActionExecutionException
*/
abstract ReturnType execute() throws CommandActionExecutionException;
abstract Object execute() throws CommandActionExecutionException;
}


Expand Down

0 comments on commit 695ee06

Please sign in to comment.