Skip to content

Commit

Permalink
Fix CI for AS Canary
Browse files Browse the repository at this point in the history
- Remove private keyword in interface methods not supported in -source 8
- Replace `var` with `List` the return type of the method

PiperOrigin-RevId: 552593456
  • Loading branch information
mai93 authored and copybara-github committed Jul 31, 2023
1 parent af3591f commit 47f9f20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.idea.common.experiments.BoolExperiment;
import com.intellij.openapi.project.Project;
import java.util.Collection;
import java.util.List;

/** Compat class for {@link DeployTask} */
public class DeployTasksCompat {
Expand All @@ -35,7 +36,7 @@ public static BlazeLaunchTask createDeployTask(
Project project, Collection<ApkInfo> packages, DeployOptions deployOptions) {
return launchContext -> {
try {
var unused =
List unused =
new DeployTask(
project,
packages,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void configureNativeDebugger(
}
}

private static boolean isNdkPluginLoaded() {
static boolean isNdkPluginLoaded() {
return PluginManagerCore.getLoadedPlugins().stream()
.anyMatch(
d -> d.isEnabled() && d.getPluginId().getIdString().equals("com.android.tools.ndk"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.idea.common.experiments.BoolExperiment;
import com.intellij.openapi.project.Project;
import java.util.Collection;
import java.util.List;

/** Compat class for {@link DeployTask} */
public class DeployTasksCompat {
Expand All @@ -35,7 +36,7 @@ public static BlazeLaunchTask createDeployTask(
Project project, Collection<ApkInfo> packages, DeployOptions deployOptions) {
return launchContext -> {
try {
var unused =
List unused =
new DeployTask(
project,
packages,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void configureNativeDebugger(
}
}

private static boolean isNdkPluginLoaded() {
static boolean isNdkPluginLoaded() {
return PluginManagerCore.getLoadedPlugins().stream()
.anyMatch(
d -> d.isEnabled() && d.getPluginId().getIdString().equals("com.android.tools.ndk"));
Expand Down

0 comments on commit 47f9f20

Please sign in to comment.