Warum verwendet List.Copyof (...) eine redundante Array -Kreation?Java

Java-Forum
Anonymous
 Warum verwendet List.Copyof (...) eine redundante Array -Kreation?

Post by Anonymous »

Die Methode java.util.list#copyof In Java 24 ruft eine andere Methode auf java.util.immutableCollections#listCopy mit dem folgenden Körper:
>

Code: Select all

    @SuppressWarnings("unchecked")
static  List listCopy(Collection

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post