Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions findbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,12 @@
On the other hand, Kryo needs lambdas to be Serializable to work. -->
<Bug pattern="SE_BAD_FIELD,SE_COMPARATOR_SHOULD_BE_SERIALIZABLE,SE_NO_SERIALVERSIONID" />
</Match>
<Match>
<Class name="org.apache.giraph.block_app.library.gc.WorkerGCPiece"/>
<Bug pattern="DM_GC"/>
</Match>
<Match>
<Class name="org.apache.giraph.object.MultiSizedReusable"/>
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
</Match>
</FindBugsFilter>
4 changes: 0 additions & 4 deletions giraph-block-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ under the License.
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>

<!-- runtime dependency -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.WritableComparable;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* Dummy piece to hint System.gc()
*/
public class WorkerGCPiece extends PieceWithWorkerContext<WritableComparable,
Writable, Writable, NoMessage, Object, NoMessage, Object> {

@Override
@SuppressFBWarnings(value = "DM_GC")
public void workerContextSend(
BlockWorkerContextSendApi<WritableComparable, NoMessage> workerContextApi,
Object executionStage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

import com.google.common.base.Preconditions;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* Holds reusable objects of multiple sizes.
* Example usecase, is when we need a hashmap - that we will insert and iterate
Expand All @@ -43,7 +41,6 @@ public class MultiSizedReusable<T> implements Int2ObjFunction<T> {
private final Int2ObjFunction<T> createSized;
private final Consumer<T> init;
@SuppressWarnings("unchecked")
@SuppressFBWarnings("SE_TRANSIENT_FIELD_NOT_RESTORED")
private final transient T[] holder = (T[]) new Object[Integer.SIZE];

// No-arg constructor Kryo can call to initialize holder
Expand Down
6 changes: 5 additions & 1 deletion giraph-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,11 @@ under the License.
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>com.github.stephenc.findbugs</groupId>
<artifactId>findbugs-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down
28 changes: 21 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ under the License.
<dep.fasterxml-jackson.version>2.1.2</dep.fasterxml-jackson.version>
<dep.fastutil.version>6.5.4</dep.fastutil.version>
<dep.google.findbugs.version>2.0.2</dep.google.findbugs.version>
<dep.stephenc-findbugs.version>1.3.9-1</dep.stephenc-findbugs.version>
<dep.guava.version>18.0</dep.guava.version>
<dep.hbase.version>0.94.16</dep.hbase.version>
<dep.hcatalog.version>0.5.0-incubating</dep.hcatalog.version>
Expand Down Expand Up @@ -635,12 +636,8 @@ under the License.
<exclude>com.google.collections:google-collections</exclude>
<!-- but not the badly numbered ones... -->
<exclude>com.google.guava:guava</exclude>
<!-- Clashes with com.google.code.findbugs:annotations and having both jars -->
<!-- as a dependency then clashes with the dependency checker (because it -->
<!-- is not very good at handling annotations). Use the annotations jar -->
<!-- instead which has all jsr305 annotations and the additional findbugs -->
<!-- stuff. -->
<exclude>com.google.code.findbugs:jsr305</exclude>
<!-- com.google.code.findbugs:annotations is LGPL. Use com.github.stephenc.findbugs:findbugs-annotations instead. -->
<exclude>com.google.code.findbugs:annotations</exclude>
<!-- Use the official version at javax.servlet:javax.servlet-api -->
<exclude>org.eclipse.jetty.orbit:javax.servlet</exclude>
<!-- Renamed airlift modules -->
Expand Down Expand Up @@ -1541,9 +1538,14 @@ under the License.
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<artifactId>jsr305</artifactId>
<version>${dep.google.findbugs.version}</version>
</dependency>
<dependency>
<groupId>com.github.stephenc.findbugs</groupId>
<artifactId>findbugs-annotations</artifactId>
<version>${dep.stephenc-findbugs.version}</version>
</dependency>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-core</artifactId>
Expand Down Expand Up @@ -1714,6 +1716,10 @@ under the License.
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -1733,6 +1739,10 @@ under the License.
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -1757,6 +1767,10 @@ under the License.
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down