HBASE-19610 Fixed Checkstyle errors in hbase-protocol and enabled Checkstyle to fail on violations

This commit is contained in:
Jan Hentschel 2017-12-24 13:59:27 +01:00
parent 6b39062e86
commit 3ed68fd70d
3 changed files with 21 additions and 5 deletions

View File

@ -112,6 +112,22 @@
</replacements> </replacements>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>checkstyle</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<failOnViolation>true</failOnViolation>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
<pluginManagement> <pluginManagement>
<plugins> <plugins>

View File

@ -17,18 +17,18 @@
*/ */
package org.apache.hadoop.hbase.util; package org.apache.hadoop.hbase.util;
import com.google.protobuf.ByteString;
import com.google.protobuf.HBaseZeroCopyByteString;
import org.apache.yetus.audience.InterfaceAudience; import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.google.protobuf.ByteString;
import com.google.protobuf.HBaseZeroCopyByteString;
/** /**
* Hack to workaround HBASE-10304 issue that keeps bubbling up when a mapreduce context. * Hack to workaround HBASE-10304 issue that keeps bubbling up when a mapreduce context.
*/ */
@InterfaceAudience.Private @InterfaceAudience.Private
public class ByteStringer { public final class ByteStringer {
private static final Logger LOG = LoggerFactory.getLogger(ByteStringer.class); private static final Logger LOG = LoggerFactory.getLogger(ByteStringer.class);
/** /**