5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-13 23:41:56 +08:00

SQOOP-2555: Sqoop2: Findbugs: Add filter for the unnecessary warning

(Colin Ma via Jarek Jarcec Cecho)
This commit is contained in:
Jarek Jarcec Cecho 2015-09-08 12:27:34 +02:00
parent 7d05cc28f9
commit a13343b345
17 changed files with 35 additions and 2 deletions

View File

@ -71,6 +71,10 @@ limitations under the License.
<artifactId>powermock-api-mockito</artifactId> <artifactId>powermock-api-mockito</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
<!-- Kite required modules --> <!-- Kite required modules -->
<dependency> <dependency>

View File

@ -47,6 +47,7 @@
* The class arranges to perform dataset operations (without thread safety * The class arranges to perform dataset operations (without thread safety
* guarantee). * guarantee).
*/ */
@edu.umd.cs.findbugs.annotations.SuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
public class KiteDatasetExecutor { public class KiteDatasetExecutor {
private final Dataset<GenericRecord> dataset; private final Dataset<GenericRecord> dataset;

View File

@ -53,6 +53,10 @@ limitations under the License.
<groupId>org.apache.avro</groupId> <groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId> <artifactId>avro</artifactId>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -60,6 +60,7 @@
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
@InterfaceStability.Unstable @InterfaceStability.Unstable
@edu.umd.cs.findbugs.annotations.SuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
public class SqoopIDFUtils { public class SqoopIDFUtils {
public static final String NULL_VALUE = "NULL"; public static final String NULL_VALUE = "NULL";

View File

@ -59,6 +59,7 @@
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
@InterfaceStability.Unstable @InterfaceStability.Unstable
@edu.umd.cs.findbugs.annotations.SuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
public class AVROIntermediateDataFormat extends IntermediateDataFormat<GenericRecord> { public class AVROIntermediateDataFormat extends IntermediateDataFormat<GenericRecord> {
private Schema avroSchema; private Schema avroSchema;

View File

@ -46,6 +46,7 @@
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
@InterfaceStability.Unstable @InterfaceStability.Unstable
@edu.umd.cs.findbugs.annotations.SuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
public class JSONIntermediateDataFormat extends IntermediateDataFormat<JSONObject> { public class JSONIntermediateDataFormat extends IntermediateDataFormat<JSONObject> {
// need this default constructor for reflection magic used in execution engine // need this default constructor for reflection magic used in execution engine

View File

@ -57,6 +57,10 @@ limitations under the License.
<groupId>org.apache.sqoop</groupId> <groupId>org.apache.sqoop</groupId>
<artifactId>connector-sdk</artifactId> <artifactId>connector-sdk</artifactId>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -35,6 +35,7 @@
import static org.apache.sqoop.core.ConfigurationConstants.PROPERTIES_PROVIDER_SLEEP; import static org.apache.sqoop.core.ConfigurationConstants.PROPERTIES_PROVIDER_SLEEP;
@edu.umd.cs.findbugs.annotations.SuppressWarnings("IS2_INCONSISTENT_SYNC")
public class PropertiesConfigurationProvider implements ConfigurationProvider { public class PropertiesConfigurationProvider implements ConfigurationProvider {
private static final Logger LOG = private static final Logger LOG =

View File

@ -46,6 +46,7 @@
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
@InterfaceStability.Unstable @InterfaceStability.Unstable
@edu.umd.cs.findbugs.annotations.SuppressWarnings("IS2_INCONSISTENT_SYNC")
public class SqoopConfiguration implements Reconfigurable { public class SqoopConfiguration implements Reconfigurable {
/** /**

View File

@ -51,6 +51,7 @@
import org.apache.sqoop.submission.SubmissionStatus; import org.apache.sqoop.submission.SubmissionStatus;
import org.apache.sqoop.utils.ClassUtils; import org.apache.sqoop.utils.ClassUtils;
@edu.umd.cs.findbugs.annotations.SuppressWarnings("IS2_INCONSISTENT_SYNC")
public class JobManager implements Reconfigurable { public class JobManager implements Reconfigurable {
/** /**
* Logger object. * Logger object.

View File

@ -37,7 +37,7 @@
import org.apache.sqoop.core.SqoopConfiguration; import org.apache.sqoop.core.SqoopConfiguration;
import org.apache.sqoop.utils.ClassUtils; import org.apache.sqoop.utils.ClassUtils;
@edu.umd.cs.findbugs.annotations.SuppressWarnings("IS2_INCONSISTENT_SYNC")
public class JdbcRepositoryProvider implements RepositoryProvider { public class JdbcRepositoryProvider implements RepositoryProvider {
private static final Logger LOG = Logger.getLogger(JdbcRepositoryProvider.class); private static final Logger LOG = Logger.getLogger(JdbcRepositoryProvider.class);

View File

@ -72,7 +72,10 @@ limitations under the License.
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
<!-- See profiles for Hadoop specific dependencies --> <!-- See profiles for Hadoop specific dependencies -->
</dependencies> </dependencies>

View File

@ -46,6 +46,7 @@
import org.apache.sqoop.job.io.SqoopWritable; import org.apache.sqoop.job.io.SqoopWritable;
import org.apache.sqoop.utils.ClassUtils; import org.apache.sqoop.utils.ClassUtils;
@edu.umd.cs.findbugs.annotations.SuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
public class SqoopOutputFormatLoadExecutor { public class SqoopOutputFormatLoadExecutor {
public static final Logger LOG = public static final Logger LOG =

View File

@ -132,6 +132,10 @@ limitations under the License.
<groupId>com.googlecode.json-simple</groupId> <groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId> <artifactId>json-simple</artifactId>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -28,6 +28,7 @@
* Initializes the Sqoop server. This listener is also responsible for * Initializes the Sqoop server. This listener is also responsible for
* cleaning up any resources occupied by the server during the system shutdown. * cleaning up any resources occupied by the server during the system shutdown.
*/ */
@edu.umd.cs.findbugs.annotations.SuppressWarnings("DM_EXIT")
public class ServerInitializer implements ServletContextListener { public class ServerInitializer implements ServletContextListener {
private static final Logger LOG = Logger.getLogger(ServerInitializer.class); private static final Logger LOG = Logger.getLogger(ServerInitializer.class);

View File

@ -76,6 +76,10 @@ limitations under the License.
<artifactId>groovy-all</artifactId> <artifactId>groovy-all</artifactId>
<version>1.8.5</version> <version>1.8.5</version>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles> <profiles>

View File

@ -30,6 +30,7 @@
import static org.apache.sqoop.shell.ShellEnvironment.*; import static org.apache.sqoop.shell.ShellEnvironment.*;
@SuppressWarnings("serial") @SuppressWarnings("serial")
@edu.umd.cs.findbugs.annotations.SuppressWarnings("SE_BAD_FIELD")
public class ShowVersionFunction extends SqoopFunction { public class ShowVersionFunction extends SqoopFunction {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private VersionResourceRequest versionRequest; private VersionResourceRequest versionRequest;