Esempio

public static void main( String[] args ){
String str = new String("Example"); //$NON-NLS-1$
System.out.println( str );
}


Soluzione
Rimuovere il richiamo a new
  1. Sostituire il richiamo String x = new String( value ) con 'String x = value'

public static void main( String[] args ){
String str = "Example"; //$NON-NLS-1$
System.out.println( str );
}