Skip to content

Commit

Permalink
Renamed "getMatchingTokenTextElements" to "findTokenTextElementForCom…
Browse files Browse the repository at this point in the history
…ment"
  • Loading branch information
Justin Kissling committed Feb 12, 2019
1 parent 1e9c832 commit e89b025
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -138,7 +138,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert
nodeText = getOrCreateNodeText(observedNode);
}

List<TokenTextElement> matchingTokens = getMatchingTokenTextElements((Comment) oldValue, nodeText);
List<TokenTextElement> matchingTokens = findTokenTextElementForComment((Comment) oldValue, nodeText);

TokenTextElement matchingElement = matchingTokens.get(0);
int index = nodeText.findElement(matchingElement.and(matchingElement.matchByRange()));
Expand All @@ -151,7 +151,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert
}
} else {
if (oldValue instanceof JavadocComment) {
List<TokenTextElement> matchingTokens = getMatchingTokenTextElements((JavadocComment) oldValue, nodeText);
List<TokenTextElement> matchingTokens = findTokenTextElementForComment((JavadocComment) oldValue, nodeText);

JavadocComment newJavadocComment = (JavadocComment) newValue;
TokenTextElement matchingElement = matchingTokens.get(0);
Expand All @@ -170,7 +170,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert
LEXICAL_DIFFERENCE_CALCULATOR.calculatePropertyChange(nodeText, observedNode, property, oldValue, newValue);
}

private List<TokenTextElement> getMatchingTokenTextElements(Comment oldValue, NodeText nodeText) {
private List<TokenTextElement> findTokenTextElementForComment(Comment oldValue, NodeText nodeText) {
List<TokenTextElement> matchingTokens;

if (oldValue instanceof JavadocComment) {
Expand Down

0 comments on commit e89b025

Please sign in to comment.