@@ -55,7 +55,7 @@ public void incrementDependencies()
55
55
*
56
56
* @param updates collection of all version updates, typically from {@linkplain PluginUpdatesModel#getAllUpdates()}
57
57
* @param cache if not null, cache to retrieve the version information, initialised with
58
- * the {@link ArtifactVersions#getOldestUpdate (Optional)} update information
58
+ * the {@link ArtifactVersions#getNewestUpdate (Optional)} update information
59
59
* @param <T> always equal to {@linkplain PluginOverviewStats}
60
60
* @param <V> always equal to {@linkplain org.codehaus.mojo.versions.PluginUpdatesDetails}
61
61
* @return instance of the {@linkplain PluginOverviewStats}, initialised with the update information
@@ -66,19 +66,19 @@ public static <T extends OverviewStats, V extends ArtifactVersions> T fromUpdate
66
66
PluginOverviewStats stats = new PluginOverviewStats ();
67
67
updates .forEach ( details ->
68
68
{
69
- if ( getOldestUpdate ( cache , details , of ( SUBINCREMENTAL ) ) != null )
69
+ if ( getNewestUpdate ( cache , details , of ( SUBINCREMENTAL ) ) != null )
70
70
{
71
71
stats .incrementAny ();
72
72
}
73
- else if ( getOldestUpdate ( cache , details , of ( INCREMENTAL ) ) != null )
73
+ else if ( getNewestUpdate ( cache , details , of ( INCREMENTAL ) ) != null )
74
74
{
75
75
stats .incrementIncremental ();
76
76
}
77
- else if ( getOldestUpdate ( cache , details , of ( MINOR ) ) != null )
77
+ else if ( getNewestUpdate ( cache , details , of ( MINOR ) ) != null )
78
78
{
79
79
stats .incrementMinor ();
80
80
}
81
- else if ( getOldestUpdate ( cache , details , of ( MAJOR ) ) != null )
81
+ else if ( getNewestUpdate ( cache , details , of ( MAJOR ) ) != null )
82
82
{
83
83
stats .incrementMajor ();
84
84
}
0 commit comments