WI-6302 Rename: Bug in rename class refactoring when using "Rename containing file"

This commit is contained in:
Svetlana.Zemlyanskay
2012-11-02 13:31:16 +04:00
parent 36b6601250
commit 8d57e98072
@@ -88,6 +88,7 @@ public class NameSuggester {
}
public String suggestName(final String propertyName) {
if (myOldClassNameAsGiven.equals(propertyName)) return myNewClassNameAsGiven;
final String[] propertyWords = NameUtil.splitNameIntoWords(propertyName);
TIntIntHashMap matches = calculateMatches(propertyWords);
if (matches.isEmpty()) return propertyName;