Add getters for delegates (#2273)

Fixes gh-2261
This commit is contained in:
maciejtoporowicz
2023-03-14 17:16:29 +01:00
committed by GitHub
parent 068099a4db
commit 25606b2896
4 changed files with 48 additions and 0 deletions

View File

@@ -75,4 +75,11 @@ public class TraceCallable<V> implements Callable<V> {
}
}
/**
* @return delegate {@link Callable}
*/
public Callable<V> getDelegate() {
return delegate;
}
}

View File

@@ -72,4 +72,11 @@ public class TraceRunnable implements Runnable {
}
}
/**
* @return delegate {@link Runnable}
*/
public Runnable getDelegate() {
return delegate;
}
}