private void runAsyncImport() {
Runnable task = () -> runImport();
new Thread(task).start();
}
I am getting sonar issue for the above code, Replace this lambda with a method reference. (sonar.java.source not set. Assuming 8 or greater.)
How to fix it