X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fio%2FFileBackedOutputStream.java;h=353a25156cc4940613a8a2a1a55b7ef8fb6c41fc;hb=refs%2Fchanges%2F11%2F80211%2F6;hp=38249dabd4bee4bb33f356cdfc1b42cb326a6a77;hpb=6ead1cc9d35cdb72f469f7a451df3597c60c1a93;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/io/FileBackedOutputStream.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/io/FileBackedOutputStream.java index 38249dabd4..353a25156c 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/io/FileBackedOutputStream.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/io/FileBackedOutputStream.java @@ -22,10 +22,10 @@ import java.io.OutputStream; import java.nio.file.Files; import java.util.Iterator; import java.util.Set; -import javax.annotation.Nonnull; -import javax.annotation.Nullable; import javax.annotation.concurrent.GuardedBy; import javax.annotation.concurrent.ThreadSafe; +import org.eclipse.jdt.annotation.NonNull; +import org.eclipse.jdt.annotation.Nullable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -89,8 +89,7 @@ public class FileBackedOutputStream extends OutputStream { * @return a ByteSource instance * @throws IOException if close fails */ - @Nonnull - public synchronized ByteSource asByteSource() throws IOException { + public synchronized @NonNull ByteSource asByteSource() throws IOException { close(); if (source == null) {