File tree Expand file tree Collapse file tree
fx/src/main/java/visualizer/fx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,7 +192,8 @@ private void fail(Throwable error) {
192192 }
193193
194194 private void resetCounters () {
195- new AdicionalesSorts (0 );
195+ // Reset the shared legacy metrics explicitly, without allocating an unused object.
196+ AdicionalesSorts .resetCounters ();
196197 DibujarGraficos .finSort = false ;
197198 DibujarGraficos .mismo = 0 ;
198199 DibujarGraficos .anterioresMismo = -1 ;
@@ -232,7 +233,11 @@ public void close() {
232233 worker .shutdownNow ();
233234 }
234235
235- /** Compatibility adapter; no visible Swing UI is built or rendered. */
236+ /**
237+ * Adapter required by the legacy constructor signatures: the original
238+ * algorithms expect MainAplicacion and call its animation methods directly.
239+ * Only these callbacks are overridden; no visible Swing window is created.
240+ */
236241 private final class LegacyCallbacks extends MainAplicacion {
237242 @ Override
238243 public void updateAnimaciones () {
You can’t perform that action at this time.
0 commit comments