File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
joern-cli/frontends/javasrc2cpg/src
main/scala/io/joern/javasrc2cpg/astcreation/expressions
test/scala/io/joern/javasrc2cpg/querying Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ trait AstForCallExpressionsCreator { this: AstCreator =>
8181 .toList
8282 }
8383
84- val receiverType = scopeAsts.rootType.filter(_ != TypeConstants .Any ).orElse(receiverTypeOption)
84+ val receiverType = scopeAsts.rootType.filter(_ != TypeConstants .Any ).orElse(receiverTypeOption)
8585 val staticReceiver = Option .when(dispatchType == DispatchTypes .STATIC_DISPATCH )(receiverType).flatten
8686
8787 val argumentsCode = getArgumentCodeString(call.getArguments)
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ class NewCallTests extends JavaSrcCode2CpgFixture {
141141 }
142142
143143 " calls to inherited static methods" should {
144- val cpg = code(
145- """
144+ val cpg = code("""
146145 |package foo;
147146 |
148147 |class Foo {
@@ -151,16 +150,14 @@ class NewCallTests extends JavaSrcCode2CpgFixture {
151150 | }
152151 |}
153152 |""" .stripMargin)
154- .moreCode(
155- """
153+ .moreCode("""
156154 |package bar;
157155 |
158156 |import foo.Foo;
159157 |
160158 |class Bar extends Foo { }
161159 |""" .stripMargin)
162- .moreCode(
163- """
160+ .moreCode("""
164161 |package baz;
165162 |
166163 |import bar.Bar;
@@ -170,8 +167,7 @@ class NewCallTests extends JavaSrcCode2CpgFixture {
170167 | Bar.foo();
171168 | }
172169 |}
173- |""" .stripMargin
174- )
170+ |""" .stripMargin)
175171
176172 " have the correct staticReceiver set" in {
177173 inside(cpg.call.name(" foo" ).l) { case List (fooCall) =>
You can’t perform that action at this time.
0 commit comments