mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-6302 Rename: Bug in rename class refactoring when using "Rename containing file"
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user