Skip to content

Commit 2e46919

Browse files
committed
java: nicer code as suggested by review
1 parent 65fe9ab commit 2e46919

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ private class KtExpectationComment extends J::KtComment, ExpectationComment {
2828
}
2929

3030
private class XmlExpectationComment extends ExpectationComment instanceof J::XmlComment {
31-
override string getContents() { result = this.(J::XmlComment).getText().trim() }
31+
override string getContents() { result = super.getText().trim() }
3232

3333
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
34-
this.(J::XmlComment).hasLocationInfo(path, sl, sc, el, ec)
34+
J::XmlComment.super.hasLocationInfo(path, sl, sc, el, ec)
3535
}
3636

37-
override string toString() { result = this.(J::XmlComment).toString() }
37+
override string toString() { result = J::XmlComment.super.toString() }
3838
}
3939

4040
import Make<ExpectationComment>

0 commit comments

Comments
 (0)