We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0b596c commit 53dd790Copy full SHA for 53dd790
1 file changed
src/main/java/io/github/malczuuu/problem4j/core/ProblemStatus.java
@@ -642,8 +642,8 @@ public enum ProblemStatus {
642
* Return the {@link ProblemStatus} matching the given integer HTTP status code.
643
*
644
* @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
+ * @return an {@link Optional} containing the matching {@link ProblemStatus} if present, or empty
+ * if there is no enum constant for the provided code
647
*/
648
public static Optional<ProblemStatus> findValue(int status) {
649
return Optional.ofNullable(STATUSES_BY_CODE.get(status));
0 commit comments