Skip to content

Commit

Permalink
Fix small errorprone issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
voidzcy committed Mar 16, 2020
1 parent d5e5855 commit a6b2739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -64,7 +64,6 @@ protected String doInBackground(Void... ignored) {
// Then print to the error message.
StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
return "Failed... : " + t.getMessage() + "\n" + sw;
} finally {
try {
tester.tearDown();
Expand Down Expand Up @@ -145,7 +144,6 @@ protected void onPostExecute(String result) {
}

private static class Tester extends AbstractInteropTest {
private final ManagedChannel channel;

private Tester(ManagedChannel channel) {
this.channel = channel;
Expand Down
Expand Up @@ -31,7 +31,7 @@
import com.google.android.gms.security.ProviderInstaller;
import io.grpc.ManagedChannel;
import java.io.InputStream;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.List;

public class TesterActivity extends AppCompatActivity
Expand All @@ -48,7 +48,7 @@ public class TesterActivity extends AppCompatActivity
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tester);
buttons = new LinkedList<>();
buttons = new ArrayList<>();
buttons.add((Button) findViewById(R.id.empty_unary_button));
buttons.add((Button) findViewById(R.id.large_unary_button));
buttons.add((Button) findViewById(R.id.client_streaming_button));
Expand Down

0 comments on commit a6b2739

Please sign in to comment.