Skip to content

fix: flag static methods on inner classes#417

Merged
kjonescertinia merged 1 commit into
mainfrom
fix/static-methods-inner-classes
Jan 24, 2026
Merged

fix: flag static methods on inner classes#417
kjonescertinia merged 1 commit into
mainfrom
fix/static-methods-inner-classes

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Summary

Static methods are not allowed in inner classes in Apex. This change adds validation to detect and report this error.

Based on work by @metalshark in PR #409 - split out for independent review/merge.

Test plan

  • Added test case for static method on inner class
  • Run sbt test to verify

@kjonescertinia kjonescertinia force-pushed the fix/static-methods-inner-classes branch 2 times, most recently from 02da939 to bf779d4 Compare January 24, 2026 22:12
Static methods are not allowed in inner classes in Apex. This change
adds validation to detect and report this error.

Based on work by @metalshark in PR #409.
@kjonescertinia kjonescertinia force-pushed the fix/static-methods-inner-classes branch from bf779d4 to d51f8a4 Compare January 24, 2026 22:50
@kjonescertinia kjonescertinia merged commit 04b677f into main Jan 24, 2026
1 check passed
@kjonescertinia kjonescertinia deleted the fix/static-methods-inner-classes branch January 25, 2026 23:24
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