This is something that can only be determined at runtime.
You can cast this method before calling the method to determine the calling thread.
public static void reportThread(String methodName) {
LOG(methodName + " was ran on thread: " + Thread.currentThread().getName());
}
source
share