-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affects: io7m-com/.github#2
- Loading branch information
Showing
12 changed files
with
82 additions
and
663 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
## junreachable | ||
|
||
The `junreachable` package implements a set of exception types for | ||
unambiguously marking code that is supposed to be unreachable (but that the | ||
compiler cannot prove is unreachable). | ||
|
||
## Status | ||
|
||
As the Java platform evolves, libraries that may have been necessary in the | ||
past can become unnecessary due to new platform features. The `junreachable` | ||
package falls into this category: There are now far fewer instances in the | ||
Java language where the compiler cannot determine that a given section of | ||
code is unreachable. In particular, switch expressions and sealed types | ||
eliminate many of the situations where unreachable code had to be explicitly | ||
marked. | ||
|
||
This package is in maintenance mode and will not see any new functionality. | ||
|
||
## Features | ||
|
||
* Exceptions for marking unreachable code. | ||
* High coverage test suite. | ||
* [OSGi-ready](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* ISC license. | ||
|
||
## Usage | ||
|
||
Throw the `UnreachableCodeException` exception at lines of code that are | ||
expected to be unreachable, but that the compiler cannot prove are really | ||
unreachable. If this exception ends up being thrown, it will unambiguously | ||
signal that the code wasn't as unreachable as the developer thought; this | ||
is clearly a bug. | ||
|
||
Throw the `UnimplementedCodeException` exception at lines of code that have | ||
yet to contain real implementations. If this exception ends up being thrown, | ||
it is immediately clear to users and developers alike what happened: The user | ||
tried to use some part of the code that hasn't yet been properly implemented. |
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 was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
com.io7m.junreachable.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...chable.documentation/src/main/java/com/io7m/junreachable/documentation/Documentation.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...achable.documentation/src/main/java/com/io7m/junreachable/documentation/package-info.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.