You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2026/07/01 15:42:27 UTC

(maven-help-plugin) branch fix-392-sorted-properties-raw-types created (now 0c8a06d)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch fix-392-sorted-properties-raw-types
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git


      at 0c8a06d  Remove raw types from SortedProperties.keySet()

This branch includes the following new commits:

     new 0c8a06d  Remove raw types from SortedProperties.keySet()

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-help-plugin) 01/01: Remove raw types from SortedProperties.keySet()

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch fix-392-sorted-properties-raw-types
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git

commit 0c8a06dd624aeede081ef07b0d4d127d7954cf6c
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Wed Jul 1 11:42:21 2026 -0400

    Remove raw types from SortedProperties.keySet()
    
    Fixes #392
---
 .../java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java b/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java
index 4bb3099..f647dac 100644
--- a/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java
@@ -140,11 +140,13 @@ public abstract class AbstractEffectiveMojo extends AbstractHelpMojo {
         static final long serialVersionUID = -8985316072702233744L;
 
         /** {@inheritDoc} */
-        @SuppressWarnings({"rawtypes", "unchecked"})
         @Override
         public Set<Object> keySet() {
             Set<Object> keynames = super.keySet();
-            List list = new ArrayList(keynames);
+            List<String> list = new ArrayList<>();
+            for (Object key : keynames) {
+                list.add((String) key);
+            }
             Collections.sort(list);
 
             return new LinkedHashSet<>(list);