-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scalafix-interfaces: higher-level API for class loading
This ports the module resolution/fetching code currently in sbt-scalafix into scalafix-interfaces. All JVM clients can now benefit from it, and avoid runtime errors due to different Scala binary versions across classloaders.
- Loading branch information
1 parent
f6c2ad7
commit e1ef4d5
Showing
10 changed files
with
391 additions
and
19 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
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
6 changes: 5 additions & 1 deletion
6
scalafix-interfaces/src/main/java/scalafix/interfaces/ScalafixException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package scalafix.interfaces; | ||
|
||
/** | ||
* An error occurred while classloading an instance of {@link Scalafix}. | ||
* An error occurred while loading an instance of {@link Scalafix}. | ||
*/ | ||
public class ScalafixException extends Exception { | ||
static final long serialVersionUID = 118L; | ||
public ScalafixException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public ScalafixException(String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.