Skip to content

Commit adc142a

Browse files
authored
Bazel run config mnemonics (and cleanup). (#580)
1 parent d7b1e34 commit adc142a

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

src/io/flutter/inspections/SdkConfigurationNotificationProvider.java

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ private static EditorNotificationPanel createWrongSdkPanel(@NotNull Project proj
6666
return panel;
6767
}
6868

69+
@SuppressWarnings("SameReturnValue")
6970
private static EditorNotificationPanel createNoFlutterSdkPanel() {
7071
// TODO(pq): add panel for unconfigured Flutter SDK.
7172

src/io/flutter/run/FlutterDebugProcess.java

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public boolean shouldEnableHotReload() {
6464
return ((FlutterAppState)myState).getMode().isReloadEnabled();
6565
}
6666

67+
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
6768
private boolean isDebuggingSession() {
6869
return isDebuggingSession(myState);
6970
}

src/io/flutter/run/bazel/FlutterBazelConfigurationEditorForm.form

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<properties>
4141
<inheritsPopupMenu value="true"/>
4242
<labelFor value="17e7b"/>
43-
<text value="Launching script:"/>
43+
<text value="Launching &amp;script:"/>
4444
</properties>
4545
</component>
4646
<component id="17e7b" class="com.intellij.openapi.ui.TextFieldWithBrowseButton" binding="myLaunchingScript">
@@ -57,7 +57,7 @@
5757
</constraints>
5858
<properties>
5959
<labelFor value="ada9e"/>
60-
<text value="Additional args:"/>
60+
<text value="Additional &amp;args:"/>
6161
</properties>
6262
</component>
6363
<component id="ada9e" class="javax.swing.JTextField" binding="myAdditionalArgs">
@@ -72,7 +72,7 @@
7272
</constraints>
7373
<properties>
7474
<labelFor value="ada9f"/>
75-
<text value="Bazel build target:"/>
75+
<text value="Bazel build &amp;target:"/>
7676
</properties>
7777
</component>
7878
<component id="ada9f" class="javax.swing.JTextField" binding="myBuildTarget">

src/io/flutter/run/daemon/FlutterDaemonController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private static GeneralCommandLine createBazelRunner(@NotNull Project project,
241241
boolean isHot,
242242
@NotNull String launchingScript,
243243
@NotNull String bazelTarget,
244-
@Nullable String additionalArguments) throws ExecutionException {
244+
@Nullable String additionalArguments) {
245245
final GeneralCommandLine commandLine = new GeneralCommandLine().withWorkDirectory(projectDir);
246246
commandLine.setCharset(CharsetToolkit.UTF8_CHARSET);
247247
commandLine.setExePath(FileUtil.toSystemDependentName(launchingScript));

src/io/flutter/run/daemon/FlutterDaemonControllerHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ void process(FlutterDaemonControllerHelper manager, FlutterDaemonController cont
667667

668668
private static class AppStoppedEvent extends Event {
669669
// "event":"app.stop"
670-
@SuppressWarnings("unused") private String appId;
670+
@SuppressWarnings({"unused", "CanBeFinal"}) private String appId;
671671

672672
void process(FlutterDaemonControllerHelper manager, FlutterDaemonController controller) {
673673
manager.eventAppStopped(this);

third_party/intellij-plugins-dart/src/com/jetbrains/lang/dart/ide/runner/server/vmService/DartVmServiceDebugProcessZ.java

-3
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,6 @@ public void logInformation(final String message, final Throwable exception) {
198198
});
199199
}
200200

201-
public void scheduleConnect() {
202-
}
203-
204201
public void scheduleConnectNew() {
205202
ApplicationManager.getApplication().executeOnPooledThread(() -> {
206203
if (myConnector != null) {

0 commit comments

Comments
 (0)