geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [3/5] incubator-geode git commit: Import SuppressWarnings
Date Fri, 21 Oct 2016 23:24:53 GMT
Import SuppressWarnings


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/4ebebf0e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/4ebebf0e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/4ebebf0e

Branch: refs/heads/feature/GEODE-2012
Commit: 4ebebf0eb1d4793afd64db5846ea4157b10aeb54
Parents: 373f5e1
Author: Kirk Lund <klund@apache.org>
Authored: Thu Oct 20 12:27:08 2016 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Thu Oct 20 12:27:08 2016 -0700

----------------------------------------------------------------------
 .../apache/geode/internal/statistics/StatArchiveWriter.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4ebebf0e/geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveWriter.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveWriter.java
b/geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveWriter.java
index b8f44e2..8f47ee4 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveWriter.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveWriter.java
@@ -33,6 +33,8 @@ import java.net.UnknownHostException;
 import java.util.*;
 import java.util.zip.GZIPOutputStream;
 
+import edu.umd.cs.findbugs.annotations.SuppressWarnings;
+
 /**
  * StatArchiveWriter provides APIs to write statistic snapshots to an archive
  * file.
@@ -150,7 +152,7 @@ public class StatArchiveWriter implements StatArchiveFormat, SampleHandler
{
     }
   }
   
-  @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE",
justification="Best effort attempt to delete a GFS file without any samples.") 
+  @SuppressWarnings(value="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE", justification="Best effort
attempt to delete a GFS file without any samples.")
   private static void deleteFileIfPossible(File file) {
     file.delete();
   }
@@ -270,7 +272,7 @@ public class StatArchiveWriter implements StatArchiveFormat, SampleHandler
{
     }
   }
   
-  @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD",
justification="This is only for debugging and there is never more than one instance being
traced because there is only one stat sampler.") 
+  @SuppressWarnings(value="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", justification="This
is only for debugging and there is never more than one instance being traced because there
is only one stat sampler.")
   public void allocatedResourceInstance(ResourceInstance statResource) {
     if (logger.isTraceEnabled(LogMarker.STATISTICS)) {
       logger.trace(LogMarker.STATISTICS, "StatArchiveWriter#allocatedResourceInstance statResource={}",
statResource);


Mime
View raw message