@conditional allowed only on void-returning methods
The compiler detected an @conditional comment tag for a method that has a non-void return value. The @conditional comment tag can only be used for methods without a return value. Change the method declaration to return void or remove the @conditional comment tag and compile again.
The following example illustrates this error:
public class Simple{
/**@conditional(DEBUG)*/
public int method1(int x){
//error: conditional methods cannot return a value
return x * 2;
}
}