Skip to content

Commit

Permalink
Issue #2609 Rename RunnableResult to Result
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bartel <[email protected]>
  • Loading branch information
janbartel committed Aug 12, 2020
1 parent 63531e6 commit 9ed36ef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public abstract class AbstractSessionDataStore extends ContainerLifeCycle implem
*
* @param <V> the type of the result.
*/
private class RunnableResult<V>
private class Result<V>
{
private V _result;
private Exception _exception;
Expand Down Expand Up @@ -173,7 +173,7 @@ public SessionData load(String id) throws Exception
if (!isStarted())
throw new IllegalStateException("Not started");

final RunnableResult<SessionData> result = new RunnableResult<>();
final Result<SessionData> result = new Result<>();

Runnable r = () ->
{
Expand Down Expand Up @@ -216,7 +216,7 @@ public void store(String id, SessionData data) throws Exception
//set the last saved time to now
data.setLastSaved(System.currentTimeMillis());

final RunnableResult<Object> result = new RunnableResult<>();
final Result<Object> result = new Result<>();
Runnable r = () ->
{
try
Expand All @@ -240,7 +240,7 @@ public void store(String id, SessionData data) throws Exception
@Override
public boolean exists(String id) throws Exception
{
RunnableResult<Boolean> result = new RunnableResult<>();
Result<Boolean> result = new Result<>();
Runnable r = () ->
{
try
Expand Down

0 comments on commit 9ed36ef

Please sign in to comment.