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() {
220220 }
221221
222222 /**
223- * Wrapper method for Manager. installAllLatestLibraries(String category )
224- *
223+ * Wrapper method for Manager. installAllLatestLibraries()
224+ *
225225 * @param category
226226 */
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- */
235227 public static void installAllLatestLibraries () {
236- Set <String > allcategories = getAllCategories ();
237- for (String categorieName : allcategories ) {
238- Manager .installAllLatestLibraries (categorieName );
239- }
240-
228+ Manager .installAllLatestLibraries ();
241229 }
242230
243231 /**
Original file line number Diff line number Diff line change @@ -89,6 +89,11 @@ public Collection<Library> getLatestLibraries(String category) {
8989 return libs ;
9090 }
9191
92+ public Collection <Library > getLatestLibraries () {
93+
94+ return this .latestLibs .values ();
95+ }
96+
9297 public Collection <Library > getLibraries (String category ) {
9398 Set <String > categoryLibs = this .categories .get (category );
9499 if (categoryLibs == null ) {
Original file line number Diff line number Diff line change @@ -866,10 +866,10 @@ public static void onlyKeepLatestPlatforms() {
866866 *
867867 * @param category
868868 */
869- public static void installAllLatestLibraries (String category ) {
869+ public static void installAllLatestLibraries () {
870870 List <LibraryIndex > libraryIndices1 = getLibraryIndices ();
871871 for (LibraryIndex libraryIndex : libraryIndices1 ) {
872- Collection <Library > libraries = libraryIndex .getLatestLibraries (category );
872+ Collection <Library > libraries = libraryIndex .getLatestLibraries ();
873873 for (Library library : libraries ) {
874874 Library previousVersion = libraryIndex .getInstalledLibrary (library .getName ());
875875 if ((previousVersion != null ) && (previousVersion != library )) {
You can’t perform that action at this time.
0 commit comments