Skip to content

Commit

Permalink
Fix a typo in the "Finally" bugpattern docs.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 587898768
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Dec 5, 2023
1 parent 4be12bc commit e5df30c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/bugpattern/Finally.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ complete normally.

Consider the following code. In the case where `doWork` throws `SomeException`,
the finally block will still be executed. If closing the input stream *also*
fails, then the exception that was thrown in the catch block will be prempted by
the exception thrown by `close()`, and the first exception will be lost.
fails, then the exception that was thrown in the catch block will be preempted
by the exception thrown by `close()`, and the first exception will be lost.

```java
InputStream in = openInputStream();
Expand Down

0 comments on commit e5df30c

Please sign in to comment.