Skip to content

Pass 2: Fix unchecked, try and cast warnings in key.core - #4013

Closed
wadoon wants to merge 3 commits into
weigl/cw-2-deprecationfrom
weigl/cw-2-core-misc
Closed

wadoon wants to merge 3 commits into
weigl/cw-2-deprecationfrom
weigl/cw-2-core-misc

Conversation

@wadoon

@wadoon wadoon commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

What

Pass 2 of the compiler-warning cleanup. This branch originally resolved
34 javac lint warnings (14× unchecked, 10× try, 7× this-escape,
2× rawtypes, 1× cast) in 13 key.core rule/proof classes and tests
(plus the warning-inventory refresh).

Per the campaign cleanup decision, ALL serial and this-escape fixes were
REMOVED from history
, so what remains is:

  • unchecked (14): OneStepSimplifierRuleApp cleanly fixed by
    parameterizing extends DefaultBuiltInRuleApp<BuiltInRule> (raw-superclass
    • member-call + override warnings all gone, no annotation); AbstractLDT,
      TestSchemaModalOperators (one shared suppressed helper) method-scope
      suppressions; Taclet and BuiltInRule class-level
      @SuppressWarnings({"unchecked","rawtypes"}) — a fully generic
      Taclet.getExecutor() is not viable (breaks javac target-type inference
      at ~40 call sites, reproduced minimally), and method-scope suppression does
      not silence unchecked-override warnings (verified empirically).
  • try (10): test methods with deliberately-unnamed try-with-resources
    handles (proof.suspendNonEssentialListeners() — close() is the effect)
    → @SuppressWarnings("try"); test semantics unchanged.
  • cast (1): redundant (WakeKey) cast removed.

3 commits total (head 1682f51163).

Removed in this cleanup: the separate this-escape commit (8
constructor-level suppressions in Node, Statistics, ProgramVariable,
KeYJavaType, LongLiteral) was dropped from history entirely — those
warnings return to baseline.

Verification

History was rebuilt by re-parenting the three surviving commits onto the
rewritten cw-2-deprecation base and dropping the this-escape commit: a
pattern scan over the rewritten history's Java diffs (serialVersionUID,
@Serial, "this-escape", "serial", transient) is clean, and the kept
commits' content is byte-identical to the originals (old vs. new head diff
over the 9 touched files is empty). No behavioral changes.

Draft — part of the warning-cleanup stack (pass 2; bases cw-2-deprecation,
ultimately targeting #4001). No test-assertion or logic changes.

Commits carry Co-Authored-By: OpenCode (KIT Medium).

@wadoon wadoon changed the title weigl/cw 2 core misc Pass 2: Fix unchecked, try and this-escape warnings in key.core Oct 24, 2026
@wadoon
wadoon added this pull request to stack #4014 October 24, 2026 23:13
@wadoon wadoon changed the title Pass 2: Fix unchecked, try and this-escape warnings in key.core Pass 2: Fix unchecked, try and cast warnings in key.core Oct 25, 2026
Untruncated full rebuild of the fully integrated tree (pass 1 + pass 2):
606 warnings in 193 files remain, all in files outside the workstream
ownership lists (deprecation 240, serial 189, this-escape 83, unchecked 64,
rawtypes 25, cast 3, overrides 2). All 284 owned files (214 pass-1 + 70
pass-2) are warning-free in this run.

Co-Authored-By: OpenCode (KIT Medium)
@wadoon
wadoon force-pushed the weigl/cw-2-deprecation branch from 42b18d1 to 51a8e0b Compare October 25, 2026 00:57
@wadoon
wadoon force-pushed the weigl/cw-2-core-misc branch from ace643e to 1682f51 Compare October 25, 2026 00:57
@wadoon wadoon closed this Oct 25, 2026
@wadoon
wadoon deleted the weigl/cw-2-core-misc branch October 25, 2026 02:33
@wadoon
wadoon removed this pull request from stack #4014 October 26, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant