Esempio

public static void main( String[] args ) {
int x = 0;
int y = 0;
x = y = 10;
System.out.println( x + " " + y ); //$NON-NLS-1$
}

Soluzione
Assegnare le variabili in istruzioni separate.

public static void main( String[] args ) {
int x = 0;
int y = 0;
x = 10;
y = 10;
System.out.println( x + " " + y ); //$NON-NLS-1$
}