From e89b025e1baf2b8b01c033d636499984bd603f3a Mon Sep 17 00:00:00 2001 From: Justin Kissling Date: Tue, 12 Feb 2019 22:05:47 +0100 Subject: [PATCH] Renamed "getMatchingTokenTextElements" to "findTokenTextElementForComment" --- .../lexicalpreservation/LexicalPreservingPrinter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java index 22b75da01f..59b5d69b81 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java @@ -138,7 +138,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert nodeText = getOrCreateNodeText(observedNode); } - List matchingTokens = getMatchingTokenTextElements((Comment) oldValue, nodeText); + List matchingTokens = findTokenTextElementForComment((Comment) oldValue, nodeText); TokenTextElement matchingElement = matchingTokens.get(0); int index = nodeText.findElement(matchingElement.and(matchingElement.matchByRange())); @@ -151,7 +151,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert } } else { if (oldValue instanceof JavadocComment) { - List matchingTokens = getMatchingTokenTextElements((JavadocComment) oldValue, nodeText); + List matchingTokens = findTokenTextElementForComment((JavadocComment) oldValue, nodeText); JavadocComment newJavadocComment = (JavadocComment) newValue; TokenTextElement matchingElement = matchingTokens.get(0); @@ -170,7 +170,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert LEXICAL_DIFFERENCE_CALCULATOR.calculatePropertyChange(nodeText, observedNode, property, oldValue, newValue); } - private List getMatchingTokenTextElements(Comment oldValue, NodeText nodeText) { + private List findTokenTextElementForComment(Comment oldValue, NodeText nodeText) { List matchingTokens; if (oldValue instanceof JavadocComment) {