Merge branch 'pr-126'

This commit is contained in:
Andreas Dangel
2016-11-20 18:40:04 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -365,7 +365,7 @@ public class ClassScope extends AbstractJavaScope {
for (String qualified : qualifiedNames) {
int fullLength = qualified.length();
if (qualified.endsWith(typeImage)
&& (fullLength == nameLength || qualified.substring(0, fullLength - nameLength).endsWith("."))) {
&& (fullLength == nameLength || qualified.charAt(fullLength - nameLength - 1) == '.')) {
return qualified;
}
}

View File

@ -6,12 +6,16 @@
**Feature Requests and Improvements:**
* java
* Type Resolution performance improved by ~15%
**New/Modified/Deprecated Rules:**
**Pull Requests:**
* [#123](https://github.com/pmd/pmd/pull/123): \[apex] Changing method names to lowercase so casing doesn't matter
* [#124](https://github.com/pmd/pmd/pull/124): \[java] CPD: Properly handle enums with `-ignore-identifiers`
* [#126](https://github.com/pmd/pmd/pull/126): \[java] Avoid creating a new String to qualify types
**Bugfixes:**