-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address all errors reported by IntelliJ (#3867)
This PR addresses all errors reported by IntelliJ. - Remove all variadic functions in `Constructors.scala` and `KORE.scala` - In terms of the generated Java code, a variadic Scala function `def foo(x: Bar*)` - always generates `public void foo(Seq<Bar> x)` - additionally generates `public void foo(Bar[] x)` when marked with `@annotation.varargs` - Problem: With `@annotation.varargs`, IntellIiJ is unable to resolve any usage of `public void foo(Seq<Bar> x)` - Dropping `@annotation.varargs` would fix this, but also lose the `public void foo(Bar[] x)` version that we use pervasively. - Manually declaring the overload `public void foo(Seq<Bar> x)` fixes the IntelliJ error, but won't compile due to conflicts with the generated one. - Solution: Change the signature to `def foo(x: Seq[Bar])`, then manually provide overloads - `def foo(x: Array[Bar]) = foo(x.toSeq)` to support `public void foo(Bar[] x)` - `def foo(x1: Bar, ..., xN: Bar) = foo(Seq(x1, ..., xN))` to support variadic calls with `0 <= N <= 5` - Move test files to ensure their directory structure actually aligns with their package structure - Fix all JavaDoc errors The only remaining reported error is the use of a deprecated method here: https://github.com/runtimeverification/k/blob/5fbbe23c3afb5a8a212058338102938cc4d91d60/kernel/src/main/java/org/kframework/kserver/KServerFrontEnd.java#L175 I was unsure whether this was required for NailGun, and left it in place accordingly.
- Loading branch information
1 parent
8528219
commit aa52e23
Showing
20 changed files
with
117 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.