<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
- <properties>
- <!-- FIXME: fixup/suppress remaining bugs and remove this -->
- <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
- </properties>
-
<build>
<plugins>
<plugin>
public class ResultAlreadySetException extends IllegalStateException {
private static final long serialVersionUID = 1L;
- private final NormalizedNode<?, ?> resultData;
+ private final transient NormalizedNode<?, ?> resultData;
public ResultAlreadySetException(final String message, final NormalizedNode<?, ?> resultData) {
this(message, resultData, null);
import static java.util.Objects.requireNonNull;
import com.google.common.collect.ImmutableMap;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
final class UnmodifiableChildrenMap
implements CloneableMap<PathArgument, DataContainerChild<? extends PathArgument, ?>>, Serializable {
private static final long serialVersionUID = 1L;
+
/*
- * Do not wrap maps which are smaller than this and instead copy them into
- * an ImmutableMap.
+ * Do not wrap maps which are smaller than this and instead copy them into an ImmutableMap.
*/
private static final int WRAP_THRESHOLD = 9;
+
+ @SuppressFBWarnings(value = "SE_BAD_FIELD", justification = "Delegate is expected to be Serializable")
private final Map<PathArgument, DataContainerChild<? extends PathArgument, ?>> delegate;
- private transient Collection<DataContainerChild<? extends PathArgument, ?>> values;
+
+ private transient Collection<DataContainerChild<? extends PathArgument, ?>> values = null;
private UnmodifiableChildrenMap(final Map<PathArgument, DataContainerChild<? extends PathArgument, ?>> delegate) {
this.delegate = requireNonNull(delegate);