mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PathMacroMap: add clarifying comments about by-reference string comparison
This commit is contained in:
@@ -47,7 +47,7 @@ public abstract class PathMacroMap {
|
||||
String newText = (recursively || (filter != null && filter.recursePathMacros(t)))
|
||||
? substituteRecursively(oldText, caseSensitive)
|
||||
: substitute(oldText, caseSensitive);
|
||||
if (oldText != newText) {
|
||||
if (oldText != newText) { // if the string was changed
|
||||
t.setText(newText);
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public abstract class PathMacroMap {
|
||||
String newValue = (recursively || (filter != null && filter.recursePathMacros(attribute)))
|
||||
? substituteRecursively(oldValue, caseSensitive)
|
||||
: substitute(oldValue, caseSensitive);
|
||||
if (oldValue != newValue) {
|
||||
if (oldValue != newValue) { // if the string was changed
|
||||
attribute.setValue(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user