Skip to content

Commit 8055275

Browse files
authored
[CQ] API: migrate FlutterSdkManager off deprecated afterLibraryRenamed (#8124)
Move to the stable `afterLibraryRenamed` API variant. ![image](https://github.com/user-attachments/assets/46f4971f-0955-49eb-9338-78faba823aec) See: #7718 --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <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](#8098)). </details>
1 parent 26fc585 commit 8055275

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flutter-idea/src/io/flutter/sdk/FlutterSdkManager.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.intellij.openapi.util.Disposer;
1616
import com.intellij.util.EventDispatcher;
1717
import org.jetbrains.annotations.NotNull;
18+
import org.jetbrains.annotations.Nullable;
1819

1920
import java.util.EventListener;
2021
import java.util.Objects;
@@ -124,7 +125,7 @@ public void afterLibraryAdded(@NotNull Library newLibrary) {
124125
}
125126

126127
@Override
127-
public void afterLibraryRenamed(@NotNull Library library) {
128+
public void afterLibraryRenamed(@NotNull Library library, @Nullable String newName) {
128129
// Since we key off name, test to be safe.
129130
checkForFlutterSdkChange();
130131
}

0 commit comments

Comments
 (0)