Example

public class ClassA {
static final void testMethod () {
}
}


Solution
Remove final from the method declaration.

public class ClassA {
static void testMethod () {
}
}