From e6ad9feb84e89f4722ffbb25b3548d6ae213a6a1 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sat, 9 Sep 2017 12:05:39 -0700 Subject: [PATCH] Keeping Findbugs happy --- src/main/java/org/kohsuke/github/GHTreeBuilder.java | 3 +++ src/test/java/org/kohsuke/github/RepositoryTrafficTest.java | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/java/org/kohsuke/github/GHTreeBuilder.java b/src/main/java/org/kohsuke/github/GHTreeBuilder.java index cffbc8eafd..122c5775b5 100644 --- a/src/main/java/org/kohsuke/github/GHTreeBuilder.java +++ b/src/main/java/org/kohsuke/github/GHTreeBuilder.java @@ -1,5 +1,7 @@ package org.kohsuke.github; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -14,6 +16,7 @@ public class GHTreeBuilder { private final List treeEntries = new ArrayList(); + @SuppressFBWarnings("URF_UNREAD_FIELD") private static final class TreeEntry { private final String path; private final String mode; diff --git a/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java b/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java index 3cc985b2c1..b1f13e6c97 100644 --- a/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java +++ b/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java @@ -4,6 +4,7 @@ import org.apache.commons.io.IOUtils; import org.junit.Assert; import org.junit.Test; +import org.kohsuke.github.GHRepositoryTraffic.DailyInfo; import org.mockito.Mockito; import java.io.IOException;