elharo commented on code in PR #2:
URL: https://github.com/apache/xerces-j/pull/2#discussion_r2162138439


##########
src/org/apache/xerces/dom/DOMImplementationListImpl.java:
##########
@@ -34,27 +35,27 @@
 public class DOMImplementationListImpl implements DOMImplementationList {
 
     // A collection of DOMImplementations
-    private final ArrayList fImplementations;
+    private final List<DOMImplementation> fImplementations;
 
     /**
      * Construct an empty list of DOMImplementations
      */
     public DOMImplementationListImpl() {
-        fImplementations = new ArrayList();
+        fImplementations = new ArrayList<>();
     }
     
     /** 
      * Construct a list of DOMImplementations from an ArrayList
      */ 
-    public DOMImplementationListImpl(ArrayList params) {
+    public DOMImplementationListImpl(List<DOMImplementation> params) {

Review Comment:
   That depends on the changes. Be especially careful about changing mutable 
lists to immutable lists even when that doesn't involve a change in type 
signature. This absolutely can break existing code. There might be other cases 
like this. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to