Community
Participate
Working Groups
20030307 JavaCore.newSourceEntry() includes two asserts that are NLSed. asserts provide ISV information and are not presented to the user. There is no need to NLS these strings. This takes time, and just makes the logs more difficult to read. Assert.isTrue(path.isAbsolute(), Util.bind ("classpath.needAbsolutePath" )); //$NON-NLS-1$ Assert.isTrue(exclusionPatterns != null, Util.bind ("classpath.nullExclusionPattern" )); //$NON-NLS-1$
There are other occurrences of this patterns.
Pls investigate how many we have. John - can we still change these for 2.1 ?
14 occurences in JDT/Core. Do you want me to fix all of them?
This is a low risk change. Although the performance may not be measurable, it is still an improvement. If you are comfortable making this change, I support doing it (you can count me as 1 vote for)
Go ahead Olivier.
I will also remove the NLS'ed messages from the Assert method isNotNull and isTrue. Is this ok for you?
Fixed and released in 2.1 stream.
Verified.