Skip to content

Commit

Permalink
Results
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Nov 29, 2024
1 parent 66d1500 commit 6ee628b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
*/
package net.javacrumbs.jsonunit.core.internal;

import org.jetbrains.annotations.Nullable;

/**
* Common Node code
*/
abstract class AbstractNode implements Node {
@Override
public Object getValue() {
public @Nullable Object getValue() {
return getNodeType().getValue(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package net.javacrumbs.jsonunit.core.internal;

import org.jetbrains.annotations.Nullable;

import static java.util.stream.Collectors.collectingAndThen;
import static java.util.stream.Collectors.toCollection;
import static net.javacrumbs.jsonunit.core.internal.JsonUtils.prettyPrint;
Expand Down Expand Up @@ -224,7 +226,7 @@ public String toString() {
};

interface ValueExtractor {
Object getValue(Node node);
@Nullable Object getValue(Node node);
}

class JsonMap extends AbstractMap<String, Object> implements NodeWrapper {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne -XepOpt:NullAway:AnnotatedPackages=net.javacrumbs</arg>
<arg>-Xplugin:ErrorProne -XepDisableAllChecks -Xep:NullAway:ERROR -XepOpt:NullAway:AnnotatedPackages=net.javacrumbs -XepPatchLocation:IN_PLACE</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
Expand Down

0 comments on commit 6ee628b

Please sign in to comment.