@@ -36,7 +36,8 @@ public ArrayList<String> listUpdateable(
36
36
37
37
// Generates a list of PluginVersionStates from the installed plugins obtained
38
38
// from the
39
- // SuperLocalPluginTracker instance
39
+ // SuperLocalPluginTracker instance. Creates a valid input to
40
+ // CheckForUpdatesBoundary
40
41
41
42
for (PluginTrackerModel installedModel : installedModels ) {
42
43
PluginVersionId pluginVersionId = new PluginVersionId (
@@ -50,12 +51,12 @@ public ArrayList<String> listUpdateable(
50
51
51
52
CheckForUpdatesInput input = new CheckForUpdatesInput (temp , false );
52
53
54
+ CheckForUpdatesResult rawResult = checkForUpdatesBoundary .updates (input );
55
+
53
56
// Read the list of installedModels and create a CheckForUpdatesInput object
54
57
// with state equal
55
58
// to the list of PluginTrackerModels's version
56
59
57
- CheckForUpdatesResult rawResult = checkForUpdatesBoundary .updates (input );
58
-
59
60
if (rawResult .state () == CheckForUpdatesResult .State .SUCCESS ) {
60
61
ArrayList <String > outdatedNames = new ArrayList <>();
61
62
@@ -65,15 +66,9 @@ public ArrayList<String> listUpdateable(
65
66
outdated .add (pluginModel .getLatestPluginVersion ().get ().meta ().name ());
66
67
}
67
68
return outdatedNames ;
68
-
69
- // filter the installed plugins by the outdated ids
70
-
71
69
}
72
70
73
71
return new ArrayList <>();
74
- // Need to associate the IDs of the outdated plugins with the installed plugin
75
- // YML files, and return all matches
76
-
77
72
}
78
73
79
74
}
0 commit comments