matthiasblaesing commented on PR #9635: URL: https://github.com/apache/netbeans/pull/9635#issuecomment-5801743621
@jtulach thanks for the review. - For the typo: you are tight the correct spelling is "shortened". This does not match my language feeling, but then I'm wrong ... :shrug: - The missing space is added - The signature file exists because `debugger.jpda` has a friend-only API. That will cause the sigfile to be generated. The friends are in the code base and and the only usage outside the module is in `debugger.jpda.ui`. I don't see value in keeping this API compatible based on this. I reduced the method count though as suggested. - For the threading question: no for the same `StringReference` only a single `StringInfo` will be created. If `getStringWithLengthControl` is called twice in parallel for the same `StringReference` the guard at the start of `getStringWithLengthControl` will be hit https://github.com/matthiasblaesing/netbeans/blob/9a7b4ac83ebf23c0da76c1cc982781b9aa5280d1/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ShortenedStrings.java#L165-L184. Thread 1 will add the string reference to the `retrievingStrings` set, Thread 2 will find the `StringReference` there and stop execution and `#wait()` for it. -- 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
