aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject incubator-aurora git commit: Fix compile errors under Java 8.
Date Fri, 30 Jan 2015 19:31:19 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master db6a19994 -> eff45cdab


Fix compile errors under Java 8.

Reviewed at https://reviews.apache.org/r/30446/


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

Branch: refs/heads/master
Commit: eff45cdab803c9e98fd670d2261338292f9096af
Parents: db6a199
Author: Joshua Cohen <jcohen@twopensource.com>
Authored: Fri Jan 30 11:28:33 2015 -0800
Committer: Bill Farner <wfarner@apache.org>
Committed: Fri Jan 30 11:28:33 2015 -0800

----------------------------------------------------------------------
 .../apache/aurora/scheduler/storage/testing/StorageTestUtil.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/eff45cda/src/test/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java
b/src/test/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java
index d492e17..6feddc3 100644
--- a/src/test/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java
+++ b/src/test/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java
@@ -75,7 +75,7 @@ public class StorageTestUtil {
 
   public <T> IExpectationSetters<T> expectRead() {
     final Capture<Work<T, RuntimeException>> work = EasyMockTest.createCapture();
-    return expect(storage.read(capture(work)))
+    return expect(storage.<T, RuntimeException>read(capture(work)))
         .andAnswer(new IAnswer<T>() {
           @Override
           public T answer() {
@@ -86,7 +86,7 @@ public class StorageTestUtil {
 
   public <T> IExpectationSetters<T> expectWrite() {
     final Capture<MutateWork<T, RuntimeException>> work = EasyMockTest.createCapture();
-    return expect(storage.write(capture(work))).andAnswer(new IAnswer<T>() {
+    return expect(storage.<T, RuntimeException>write(capture(work))).andAnswer(new
IAnswer<T>() {
       @Override
       public T answer() {
         return work.getValue().apply(mutableStoreProvider);


Mime
View raw message