Skip to content

Commit e2b8134

Browse files
Fix formatting
1 parent da7afb3 commit e2b8134

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

joern-cli/frontends/javasrc2cpg/src/main/scala/io/joern/javasrc2cpg/astcreation/expressions/AstForCallExpressionsCreator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

joern-cli/frontends/javasrc2cpg/src/test/scala/io/joern/javasrc2cpg/querying/CallTests.scala

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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) =>

0 commit comments

Comments
 (0)