Skip to content

Commit 53dd790

Browse files
Update javadoc
1 parent d0b596c commit 53dd790

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/io/github/malczuuu/problem4j/core/ProblemStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ public enum ProblemStatus {
642642
* Return the {@link ProblemStatus} matching the given integer HTTP status code.
643643
*
644644
* @param status the HTTP status code to look up (for example {@code 404})
645-
* @return an {@link Optional} containing the matching {@link ProblemStatus} if present, or {@link
646-
* Optional#empty()} if there is no enum constant for the provided code
645+
* @return an {@link Optional} containing the matching {@link ProblemStatus} if present, or empty
646+
* if there is no enum constant for the provided code
647647
*/
648648
public static Optional<ProblemStatus> findValue(int status) {
649649
return Optional.ofNullable(STATUSES_BY_CODE.get(status));

0 commit comments

Comments
 (0)