8000 suppress unchecked method invocation by qweek · Pull Request #385 · rsocket/rsocket-java · GitHub
[go: up one dir, main page]

Skip to content

suppress unchecked method invocation #385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
remove unnecessary code
remove deprecated API usage
remove unnecessary interface modifier
remove unused import
  • Loading branch information
qweek committed Sep 13, 2017
commit 6036a01d29155945cfbb7c3942b6b1c4fc4efd4d
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.mockito.Matchers.any;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.verify;

import io.rsocket.exceptions.ApplicationException;
Expand Down
2 changes: 1 addition & 1 deletion rsocket-core/src/test/java/io/rsocket/RSocketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import static org.mockito.Matchers.any;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.verify;

import io.rsocket.exceptions.ApplicationException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.rsocket.test.util;

import static org.mockito.Matchers.any;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;

import io.rsocket.Payload;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

public interface Quantile {
/** @return the estimation of the current value of the quantile */
public double estimation();
double estimation();

/**
* Insert a data point `x` in the quantile estimator.
*
* @param x the data point to add.
*/
public void insert(double x);
void insert(double x);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Matchers.any;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.verify;

import io.rsocket.Payload;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import static org.junit.Assert.*;

import com.google.common.base.Throwables;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
Expand Down Expand Up @@ -169,7 +168,7 @@ private RSocket getClient(String id) {
try {
return clientMap.get(id);
} catch (ExecutionException e) {
throw Throwables.propagate(e);
throw new RuntimeException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import static java.util.stream.Collectors.toList;

import com.google.common.base.Throwables;
import com.google.common.io.Files;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -43,7 +42,7 @@ public static List<TckClientTest> extractTests(File file) {
.map(testLines -> new TckClientTest(parseName(testLines.remove(0)), testLines))
.collect(toList());
} catch (IOException e) {
throw Throwables.propagate(e);
throw new RuntimeException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static java.util.stream.Collectors.toList;

import com.google.common.base.Throwables;
import com.google.common.io.Files;
import io.rsocket.tckdrivers.server.JavaServerDriver;
import java.io.File;
Expand Down Expand Up @@ -54,7 +53,7 @@ private static TckTestSuite extractTests(File serverFile) {

return tckTestSuite;
} catch (IOException e) {
throw Throwables.propagate(e);
throw new RuntimeException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Throwables;
import io.rsocket.Payload;
import java.io.IOException;
import java.util.Map;
Expand All @@ -20,7 +19,7 @@ public static Map<String, Object> parseTCKMessage(Payload content, String messag
content.getDataUtf8(), new TypeReference<Map<String, Map<String, Object>>>() {});
return message.get(messageType);
} catch (IOException e) {
throw Throwables.propagate(e);
throw new RuntimeException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import io.rsocket.tckdrivers.server.JavaServerDriver;
import io.rsocket.transport.local.LocalServerTransport;
import java.io.File;
import java.util.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.rsocket.test;

import static org.mockito.Matchers.any;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;

import io.rsocket.Payload;
Expand Down
0