Fala galera,
Colocar um System.gc() no done() do SwingWorker causaria algum problema ao meu programa?
public class Teste extends SwingWorker<Object, Object> {
@Override
protected Object doInBackground() throws Exception {
//Código
return null;
}
@Override
protected void done() {
super.done(); //To change body of generated methods, choose Tools | Templates.
System.gc();
}
}