Since we are not running checkstyle/spotbugs, this was left out.
Make sure we enable these plugins.
Change-Id: Id043c0551c702d417be31967b27469f8b720e65e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <configuration>
+ <failOnError>true</failOnError>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<scm>
<connection>scm:git:http://git.opendaylight.org/gerrit/mdsal.git</connection>
<developerConnection>scm:git:ssh://git.opendaylight.org:29418/mdsal.git</developerConnection>
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
-import java.util.Objects;
/**
* An OutputStream which makes sure to slice messages to a maximum size. This prevents array reallocations and