Skip to content

Commit 441e791

Browse files
authored
[perf] prefer primitive over wrapped ints (flutter#8532)
**TL;DR:** no need for the wrapper type and it just gets unboxed a few lines later anyway. Detected by a project inspection. <img width="1572" height="272" alt="image" src="https://github.com/user-attachments/assets/4b8810c5-7ef9-4916-bd59-230c63c343e2" /> --- <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](flutter#8098)). </details>
1 parent 03b4dc7 commit 441e791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private CompletableFuture<DevToolsInstance> checkForDartPluginInitiatedDevToolsW
216216

217217
String[] parts = dartPluginUri.split(":");
218218
String host = parts[0];
219-
Integer port = Integer.parseInt(parts[1]);
219+
int port = Integer.parseInt(parts[1]);
220220
if (host == null) {
221221
return null;
222222
}

0 commit comments

Comments
 (0)