We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Optional<?>
DeferredLogger
1 parent d818719 commit 406f3ecCopy full SHA for 406f3ec
core/src/main/java/org/openapitools/openapidiff/core/model/deferred/DeferredLogger.java
@@ -19,11 +19,7 @@ public String toString() {
19
}
20
21
public static String optionalToString(Optional<?> value) {
22
- if (value == null) {
23
- return "null";
24
- } else {
25
- return value.map((v) -> "Optional[" + valueToString(v) + "]").orElse("Optional[empty]");
26
- }
+ return value.map((v) -> "Optional[" + valueToString(v) + "]").orElse("Optional[empty]");
27
28
29
public static String changedToString(Changed value) {
0 commit comments