jtulach commented on code in PR #9775:
URL: https://github.com/apache/netbeans/pull/9775#discussion_r4438945077
##########
platform/core.startup/src/org/netbeans/core/startup/layers/BinaryFS.java:
##########
@@ -744,10 +744,15 @@ private MethodAndParams methodValue(String method,
BFSBase foProvider, String at
// Cf. XMLMapAttr.Attr.methodValue:
Class<?> cls = findClass(method.substring(0, i));
String methodName = method.substring(i + 1);
+ // optimized order based on encountered frequency (startup and
some tree interaction)
Class<?>[][] paramArray = {
- {FileObject.class, String.class}, {String.class,
FileObject.class},
- {FileObject.class}, {String.class}, {},
- {Map.class, String.class}, {Map.class},
+ {Map.class}, // 696 ← hot case, no
conflicts
Review Comment:
- technically this is an **incompatible change**
- should there be multiple overloads of the method
- with various parameter combinations
- different one is going to be selected now
- a note in apichanges.xml may be needed ;-)
- some change in XMLFileSystem documentation may be needed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists