Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ $schema: https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/sch
noBanner: true
noProgress: true
showFound: false
config:
no-duplicate-heading:
siblings_only: true
31 changes: 31 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# WALA Release Notes

## Version 1.9.0

### Functionality changes

#### `Assertions.UNREACHABLE` now returns a generic type

The `Assertions.UNREACHABLE()`, `Assertions.UNREACHABLE(String)`, and
`Assertions.UNREACHABLE(Object)` methods now return a generic type `<T>`
instead of `void`. This allows callers to write `return Assertions.UNREACHABLE(…)`
in methods that return a value, eliminating the previously required pattern of
calling `Assertions.UNREACHABLE()` followed by a separate `return null;` (or
similar unreachable-`return` statement).

**Effect for third-party consumers:**

* Existing call sites that previously wrote:

```java
Assertions.UNREACHABLE("message");
return null;
```

can now be simplified to:

```java
return Assertions.UNREACHABLE("message");
```

* Existing call sites that just call `Assertions.UNREACHABLE()` as a
statement without a following `return` continue to work unchanged.

## Version 1.8.0

### Functionality changes
Expand Down
Loading
Loading