This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-changelog-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 85853cc Remove dependency on commons-lang *2* (#31) 85853cc is described below commit 85853cc75d50c381468f43586de7ddea570e1499 Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Tue Dec 17 16:53:46 2024 +0000 Remove dependency on commons-lang *2* (#31) * Switch to commons lang3 --- .../org/apache/maven/plugins/changelog/FileActivityComparator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/changelog/FileActivityComparator.java b/src/main/java/org/apache/maven/plugins/changelog/FileActivityComparator.java index 3a1f4d2..30e7a68 100644 --- a/src/main/java/org/apache/maven/plugins/changelog/FileActivityComparator.java +++ b/src/main/java/org/apache/maven/plugins/changelog/FileActivityComparator.java @@ -21,7 +21,6 @@ package org.apache.maven.plugins.changelog; import java.util.Comparator; import java.util.List; -import org.apache.commons.lang.StringUtils; import org.apache.maven.scm.ChangeFile; /** @@ -79,7 +78,7 @@ public class FileActivityComparator implements Comparator<List<ChangeFile>> { String latest = ""; for (ChangeFile file : list) { - if (StringUtils.isNotBlank(latest)) { + if (latest != null && !latest.trim().isEmpty()) { latest = file.getRevision(); } else if (latest.compareTo(file.getRevision()) < 0) { latest = file.getRevision(); @@ -91,7 +90,7 @@ public class FileActivityComparator implements Comparator<List<ChangeFile>> { /** * compares list1 and list2 by comparing their filenames. Least priority sorting when both number of commits and - * and revision are the same + * revision are the same * * @param list1 the first object in a compare statement * @param list2 the object to compare list1 against