Skip to content

Commit a88371d

Browse files
authored
Rename old load classes (#5884)
1 parent a06bbd8 commit a88371d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

flutter-idea/src/io/flutter/jxbrowser/JxBrowserManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public void run(@NotNull ProgressIndicator indicator) {
309309
}
310310

311311
analytics.sendEvent(ANALYTICS_CATEGORY, "filesDownloaded");
312-
loadClasses2021(fileNames);
312+
loadClasses(fileNames);
313313
}
314314
catch (IOException e) {
315315
final long elapsedTime = System.currentTimeMillis() - startTime;
@@ -324,7 +324,7 @@ public void run(@NotNull ProgressIndicator indicator) {
324324
ProgressManager.getInstance().runProcessWithProgressAsynchronously(task, processIndicator);
325325
}
326326

327-
private void loadClasses(@NotNull String[] fileNames) {
327+
private void loadClasses2020(@NotNull String[] fileNames) {
328328
final ClassLoader current = Thread.currentThread().getContextClassLoader();
329329
try {
330330
//noinspection ConstantConditions
@@ -362,7 +362,7 @@ private void loadClasses(@NotNull String[] fileNames) {
362362
installation.complete(JxBrowserStatus.INSTALLED);
363363
}
364364

365-
private void loadClasses2021(@NotNull String[] fileNames) {
365+
private void loadClasses(@NotNull String[] fileNames) {
366366
final List<Path> paths = new ArrayList<>();
367367
final ClassLoader current = Thread.currentThread().getContextClassLoader();
368368
try {

tool/plugin/lib/edit.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ List<EditCommand> editCommands = [
6464
),
6565
Subst(
6666
path: 'flutter-idea/src/io/flutter/jxbrowser/JxBrowserManager.java',
67-
initial: 'loadClasses2021(fileNames)',
68-
replacement: 'loadClasses(fileNames)',
67+
initial: 'loadClasses(fileNames)',
68+
replacement: 'loadClasses2020(fileNames)',
6969
versions: ['AF.3.1'],
7070
),
7171
Subst(

0 commit comments

Comments
 (0)