File tree Expand file tree Collapse file tree 3 files changed +10
-17
lines changed
io.sloeber.core/src/io/sloeber/core Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -220,24 +220,12 @@ public static String getPrivateLibraryPathsString() {
220
220
}
221
221
222
222
/**
223
- * Wrapper method for Manager. installAllLatestLibraries(String category )
224
- *
223
+ * Wrapper method for Manager. installAllLatestLibraries()
224
+ *
225
225
* @param category
226
226
*/
227
- public static void installAllLatestLibraries (String category ) {
228
- Manager .installAllLatestLibraries (category );
229
- }
230
-
231
- /**
232
- * Convenience method for installAllLatestLibraries(String category) calling
233
- * it for all categories
234
- */
235
227
public static void installAllLatestLibraries () {
236
- Set <String > allcategories = getAllCategories ();
237
- for (String categorieName : allcategories ) {
238
- Manager .installAllLatestLibraries (categorieName );
239
- }
240
-
228
+ Manager .installAllLatestLibraries ();
241
229
}
242
230
243
231
/**
Original file line number Diff line number Diff line change @@ -89,6 +89,11 @@ public Collection<Library> getLatestLibraries(String category) {
89
89
return libs ;
90
90
}
91
91
92
+ public Collection <Library > getLatestLibraries () {
93
+
94
+ return this .latestLibs .values ();
95
+ }
96
+
92
97
public Collection <Library > getLibraries (String category ) {
93
98
Set <String > categoryLibs = this .categories .get (category );
94
99
if (categoryLibs == null ) {
Original file line number Diff line number Diff line change @@ -866,10 +866,10 @@ public static void onlyKeepLatestPlatforms() {
866
866
*
867
867
* @param category
868
868
*/
869
- public static void installAllLatestLibraries (String category ) {
869
+ public static void installAllLatestLibraries () {
870
870
List <LibraryIndex > libraryIndices1 = getLibraryIndices ();
871
871
for (LibraryIndex libraryIndex : libraryIndices1 ) {
872
- Collection <Library > libraries = libraryIndex .getLatestLibraries (category );
872
+ Collection <Library > libraries = libraryIndex .getLatestLibraries ();
873
873
for (Library library : libraries ) {
874
874
Library previousVersion = libraryIndex .getInstalledLibrary (library .getName ());
875
875
if ((previousVersion != null ) && (previousVersion != library )) {
You can’t perform that action at this time.
0 commit comments