You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/06/03 06:24:30 UTC

[GitHub] [netbeans] junichi11 commented on a diff in pull request #4169: PHP 8.1: Support for the special property(value) of BackedEnum #4066

junichi11 commented on code in PR #4169:
URL: https://github.com/apache/netbeans/pull/4169#discussion_r888646371


##########
php/php.editor/src/org/netbeans/modules/php/editor/parser/astnodes/NamespaceName.java:
##########
@@ -76,7 +76,7 @@ public static NamespaceName create(int start, int end, @NonNull String namespace
         boolean isCurrent = namespaceName.startsWith("namespace\\"); // NOI18N
         String[] names = namespaceName.split("\\\\"); // NOI18N
         int startSegment = start;
-        List<Identifier> list = new ArrayList<>();
+        List<Identifier> list = new ArrayList<>(names.length);

Review Comment:
   Fixed this: https://github.com/apache/netbeans/pull/4037#pullrequestreview-982945274



-- 
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: notifications-unsubscribe@netbeans.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists