You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Browse filesBrowse the repository at this point in the historyBrowse files
Repo Gardener
committed
code: clean up javac -Xlint warnings (unchecked, serial, redundant cast)
- TournamentAnalyzer.slaterExact: replace the generic-array sentinel
`List<String>[] bestOrder = new List[]{...}` (which forced an
`[unchecked] unchecked conversion` warning and the only suppression-
free generic-array allocation in the file) with a type-safe
single-element `List<List<String>>`. Same algorithm, same mutation
semantics through the branch-and-bound recursion, zero warnings.
- GraphInfluenceSeedAdvisor.synthesize: drop two `(double)` casts on
values that are already declared `double` (`expectedCoverage` and
`baseline`). Flagged by `-Xlint:cast` as redundant.
- Add `serialVersionUID = 1L` to four Swing classes that extend
`JComponent`/`JFrame`/`JDialog` (AdjacencyMatrixHeatmap, Main,
StatsPanel, RandomGraphDialog). These are `Serializable` by
inheritance and were each emitting `[serial] no definition of
serialVersionUID`; the JDK uses an implementation-specific hash
when the field is missing, so any future field reorder silently
breaks deserialization.
Verification: `mvn clean compile` is clean of the targeted warnings
(unchecked / cast / serial). `mvn test` for the touched classes:
TournamentAnalyzerTest 76/76 pass, GraphInfluenceSeedAdvisorTest 14/14
pass. Full `mvn test` shows the same 27 failures + 8 errors as on
origin/master (LinkPredictionAnalyzerTest, GraphLabelingAnalyzerTest,
etc.) — pre-existing, unrelated to this change.
0 commit comments