geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject incubator-geode git commit: GEODE-264: Fix varargs compiler warnings
Date Mon, 24 Aug 2015 04:19:46 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop d669d05c0 -> eeb7ae177


GEODE-264: Fix varargs compiler warnings

Add casts where needed so that invoke(null, null) is now
invoke(null).


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

Branch: refs/heads/develop
Commit: eeb7ae1778d6af454526d1daba79422f903b5f06
Parents: d669d05
Author: Anthony Baker <abaker@pivotal.io>
Authored: Sat Aug 22 08:40:22 2015 -0700
Committer: Anthony Baker <abaker@pivotal.io>
Committed: Sun Aug 23 21:04:58 2015 -0700

----------------------------------------------------------------------
 .../internal/compression/SnappyCompressorJUnitTest.java      | 2 +-
 .../src/test/java/dunit/standalone/DUnitLauncher.java        | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/eeb7ae17/gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/SnappyCompressorJUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/SnappyCompressorJUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/SnappyCompressorJUnitTest.java
index 56d647a..778d3a8 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/SnappyCompressorJUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/SnappyCompressorJUnitTest.java
@@ -54,7 +54,7 @@ public class SnappyCompressorJUnitTest extends TestCase {
     // repeat findNativeLibrary and make sure it's pointing at a file in tmpdir
     Method findNativeLibraryMethod = SnappyLoader.class.getDeclaredMethod("findNativeLibrary",
new Class[0]);
     findNativeLibraryMethod.setAccessible(true);
-    File nativeLibrary = (File) findNativeLibraryMethod.invoke(null, null);
+    File nativeLibrary = (File) findNativeLibraryMethod.invoke(null);
     System.out.println(nativeLibrary);
     assertNotNull(nativeLibrary);
     assertTrue(nativeLibrary + " does not exist", nativeLibrary.exists());

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/eeb7ae17/gemfire-core/src/test/java/dunit/standalone/DUnitLauncher.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/dunit/standalone/DUnitLauncher.java b/gemfire-core/src/test/java/dunit/standalone/DUnitLauncher.java
index 0f2eebc..a686204 100644
--- a/gemfire-core/src/test/java/dunit/standalone/DUnitLauncher.java
+++ b/gemfire-core/src/test/java/dunit/standalone/DUnitLauncher.java
@@ -31,9 +31,6 @@ import java.rmi.registry.Registry;
 import java.rmi.server.UnicastRemoteObject;
 import java.util.List;
 import java.util.Properties;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
 
 import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.LogManager;
@@ -46,12 +43,9 @@ import org.junit.Assert;
 import batterytest.greplogs.ExpectedStrings;
 import batterytest.greplogs.LogConsumer;
 
-import com.gemstone.gemfire.LogWriter;
 import com.gemstone.gemfire.distributed.Locator;
 import com.gemstone.gemfire.internal.AvailablePortHelper;
-import com.gemstone.gemfire.internal.logging.LocalLogWriter;
 import com.gemstone.gemfire.internal.logging.LogService;
-import com.gemstone.gemfire.internal.logging.LogWriterImpl;
 
 import dunit.BounceResult;
 import dunit.DUnitEnv;
@@ -104,7 +98,7 @@ public class DUnitLauncher {
       //if there is registered test configuration object.
       Class<?> clazz = Class.forName("hydra.TestConfig");
       Method getInstance = clazz.getMethod("getInstance", new Class[0]);
-      getInstance.invoke(null, null);
+      getInstance.invoke(null);
       return true;
     } catch (Exception e) {
       return false;


Mime
View raw message