Skip to content

Commit 1be1eda

Browse files
authored
upgrade and adapt (#1766)
* upgrade deps * upgrade and adapt note re `-Wconf:cat=deprecation:w,any:e`: this doesn't seem to work any longer, it leads to deprecation warnings being categorized as error... * latest codegen * upgrade scalafmt, use released codegen * fmt
1 parent 7aeb8ca commit 1be1eda

File tree

82 files changed

+179
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+179
-115
lines changed

.scalafmt.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
version = 3.4.2
2-
runner.dialect = scala213
1+
version = 3.8.1
2+
runner.dialect = scala3
33
preset = IntelliJ
44
maxColumn = 120
55
align.preset = true

build.sbt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name := "codepropertygraph"
22

33
// parsed by project/Versions.scala, updated by updateDependencies.sh
4-
val overflowdbVersion = "1.189"
5-
val overflowdbCodegenVersion = "2.106"
4+
val overflowdbVersion = "1.192"
5+
val overflowdbCodegenVersion = "2.107"
66

77
inThisBuild(
88
List(
99
organization := "io.shiftleft",
10-
scalaVersion := "3.3.1",
10+
scalaVersion := "3.4.1",
1111
resolvers ++= Seq(Resolver.mavenLocal, "Sonatype OSS" at "https://oss.sonatype.org/content/repositories/public"),
1212
packageDoc / publishArtifact := true,
1313
packageSrc / publishArtifact := true,
@@ -61,7 +61,7 @@ ThisBuild / scalacOptions ++= Seq(
6161
"-feature",
6262
// "-explain",
6363
// "-Xfatal-warnings",
64-
"-Wconf:cat=deprecation:w,any:e",
64+
// "-Wconf:cat=deprecation:w,any:e",
6565
"-language:implicitConversions"
6666
)
6767

codepropertygraph/src/main/scala/io/shiftleft/SerializedCpg.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class SerializedCpg extends AutoCloseable {
1111

1212
/** We allow creating a dummy serialized CPG that does not do anything.
1313
*/
14-
private[this] var zipFileSystem: FileSystem = null
15-
private[this] var counter = 0
14+
private var zipFileSystem: FileSystem = null
15+
private var counter = 0
1616

1717
/** Create Serialized CPG from existing file. If the file does not exist, an empty Serialized CPG is created.
1818
*/
@@ -25,7 +25,7 @@ class SerializedCpg extends AutoCloseable {
2525

2626
@throws[URISyntaxException]
2727
@throws[IOException]
28-
private[this] def initZipFilesystem(filename: String): Unit = {
28+
private def initZipFilesystem(filename: String): Unit = {
2929
val env = new util.HashMap[String, AnyRef]
3030
// This ensures that the file is created if it does not exist
3131
env.put("create", "true")

codepropertygraph/src/main/scala/io/shiftleft/codepropertygraph/Cpg.scala

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ object Cpg {
2121

2222
/** Instantiate cpg with storage. If the storage file already exists, it will load (a subset of) the data into memory.
2323
* Otherwise it will create an empty cpg. In either case, configuring storage means that OverflowDb will be stored to
24-
* disk on shutdown (`close`).
25-
* I.e. if you want to preserve state between sessions, just use this method to instantiate the cpg and ensure to
26-
* properly `close` the cpg at the end.
24+
* disk on shutdown (`close`). I.e. if you want to preserve state between sessions, just use this method to
25+
* instantiate the cpg and ensure to properly `close` the cpg at the end.
2726
* @param path
2827
* to the storage file, e.g. /home/user1/overflowdb.bin
2928
*/

codepropertygraph/src/main/scala/io/shiftleft/codepropertygraph/cpgloading/ProtoToCpg.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ProtoToCpg(overflowConfig: Config = Config.withoutOverflow) {
5454
if (node.getKey() == -1) {
5555
throw new IllegalArgumentException("node has illegal key -1. Something is wrong with the cpg.")
5656
}
57-
odbGraph.+(node.getType.name, node.getKey, properties: _*)
57+
odbGraph.+(node.getType.name, node.getKey, properties*)
5858
} catch {
5959
case e: Exception =>
6060
throw new RuntimeException("Failed to insert a node. proto:\n" + node, e)
@@ -68,7 +68,7 @@ class ProtoToCpg(overflowConfig: Config = Config.withoutOverflow) {
6868
.map(prop => (prop.getName.name, prop.getValue))
6969
.map(toProperty)
7070
try {
71-
srcNode.---(typ.name, propertyPairs: _*) --> dstNode
71+
srcNode.---(typ.name, propertyPairs*) --> dstNode
7272
} catch {
7373
case e: IllegalArgumentException =>
7474
val context = "label=" + typ.name +

codepropertygraph/src/main/scala/io/shiftleft/passes/CpgPass.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class CpgPass(cpg: Cpg, outName: String = "", keyPool: Option[KeyPool]
2121

2222
def run(builder: overflowdb.BatchedUpdate.DiffGraphBuilder): Unit
2323

24-
final override def generateParts(): Array[_ <: AnyRef] = Array[AnyRef](null)
24+
final override def generateParts(): Array[? <: AnyRef] = Array[AnyRef](null)
2525

2626
final override def runOnPart(builder: overflowdb.BatchedUpdate.DiffGraphBuilder, part: AnyRef): Unit =
2727
run(builder)
@@ -115,7 +115,7 @@ abstract class ForkJoinParallelCpgPass[T <: AnyRef](
115115
abstract class NewStyleCpgPassBase[T <: AnyRef] extends CpgPassBase {
116116
type DiffGraphBuilder = overflowdb.BatchedUpdate.DiffGraphBuilder
117117
// generate Array of parts that can be processed in parallel
118-
def generateParts(): Array[_ <: AnyRef]
118+
def generateParts(): Array[? <: AnyRef]
119119
// setup large data structures, acquire external resources
120120
def init(): Unit = {}
121121
// release large data structures and external resources

codepropertygraph/src/test/scala/io/shiftleft/codepropertygraph/cpgloading/CpgLoaderTests.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import org.scalatest.BeforeAndAfterAll
44
import org.scalatest.matchers.should.Matchers
55
import org.scalatest.wordspec.AnyWordSpec
66
import overflowdb.Config
7+
import scala.compiletime.uninitialized
78

89
/** Specification of the CPGLoader. The loader allows CPGs to be loaded from the CPG protobuf file format (based on
910
* Google protocol buffers). An optional `CpgLoaderConfig` can be passed to the loader to influence the loading
1011
* process.
1112
*/
1213
class CpgLoaderTests extends AnyWordSpec with Matchers with BeforeAndAfterAll {
1314

14-
var zipFile: better.files.File = _
15+
var zipFile: better.files.File = uninitialized
1516

1617
override def beforeAll(): Unit = {
1718
zipFile = TestProtoCpg.createTestProtoCpg

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Cpg.scala

+12-17
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ object Cpg {
1818

1919
/** Instantiate Cpg with storage. If the storage file already exists, it will load (a subset of) the data into memory.
2020
* Otherwise it will create an empty Cpg. In either case, configuring storage means that OverflowDb will be stored to
21-
* disk on shutdown (`close`).
22-
* I.e. if you want to preserve state between sessions, just use this method to instantiate the Cpg and ensure to
23-
* properly `close` it at the end.
21+
* disk on shutdown (`close`). I.e. if you want to preserve state between sessions, just use this method to
22+
* instantiate the Cpg and ensure to properly `close` it at the end.
2423
* @param path
2524
* to the storage file, e.g. /home/user1/overflowdb.bin
2625
*/
@@ -81,8 +80,8 @@ class GeneratedNodeStarterExt(val wrapper: Cpg) extends AnyVal {
8180
def annotationParameter: Iterator[nodes.AnnotationParameter] =
8281
overflowdb.traversal.InitialTraversal.from[nodes.AnnotationParameter](wrapper.graph, "ANNOTATION_PARAMETER")
8382

84-
@overflowdb.traversal.help.Doc(
85-
info = "All nodes of type AnnotationParameterAssign, i.e. with label ANNOTATION_PARAMETER_ASSIGN"
83+
@overflowdb.traversal.help.Doc(info =
84+
"All nodes of type AnnotationParameterAssign, i.e. with label ANNOTATION_PARAMETER_ASSIGN"
8685
)
8786
def annotationParameterAssign: Iterator[nodes.AnnotationParameterAssign] = overflowdb.traversal.InitialTraversal
8887
.from[nodes.AnnotationParameterAssign](wrapper.graph, "ANNOTATION_PARAMETER_ASSIGN")
@@ -238,9 +237,8 @@ class GeneratedNodeStarterExt(val wrapper: Cpg) extends AnyVal {
238237
def unknown: Iterator[nodes.Unknown] =
239238
overflowdb.traversal.InitialTraversal.from[nodes.Unknown](wrapper.graph, "UNKNOWN")
240239

241-
@overflowdb.traversal.help.Doc(
242-
info =
243-
"All nodes of type AstNode, i.e. with label in ANNOTATION, ANNOTATION_LITERAL, ANNOTATION_PARAMETER, ANNOTATION_PARAMETER_ASSIGN, ARRAY_INITIALIZER, BLOCK, CALL, COMMENT, CONTROL_STRUCTURE, FIELD_IDENTIFIER, FILE, IDENTIFIER, IMPORT, JUMP_LABEL, JUMP_TARGET, LITERAL, LOCAL, MEMBER, METHOD, METHOD_PARAMETER_IN, METHOD_PARAMETER_OUT, METHOD_REF, METHOD_RETURN, MODIFIER, NAMESPACE, NAMESPACE_BLOCK, RETURN, TEMPLATE_DOM, TYPE_ARGUMENT, TYPE_DECL, TYPE_PARAMETER, TYPE_REF, UNKNOWN"
240+
@overflowdb.traversal.help.Doc(info =
241+
"All nodes of type AstNode, i.e. with label in ANNOTATION, ANNOTATION_LITERAL, ANNOTATION_PARAMETER, ANNOTATION_PARAMETER_ASSIGN, ARRAY_INITIALIZER, BLOCK, CALL, COMMENT, CONTROL_STRUCTURE, FIELD_IDENTIFIER, FILE, IDENTIFIER, IMPORT, JUMP_LABEL, JUMP_TARGET, LITERAL, LOCAL, MEMBER, METHOD, METHOD_PARAMETER_IN, METHOD_PARAMETER_OUT, METHOD_REF, METHOD_RETURN, MODIFIER, NAMESPACE, NAMESPACE_BLOCK, RETURN, TEMPLATE_DOM, TYPE_ARGUMENT, TYPE_DECL, TYPE_PARAMETER, TYPE_REF, UNKNOWN"
244242
)
245243
def astNode: Iterator[nodes.AstNode] = wrapper.graph
246244
.nodes(
@@ -284,9 +282,8 @@ class GeneratedNodeStarterExt(val wrapper: Cpg) extends AnyVal {
284282
@overflowdb.traversal.help.Doc(info = "All nodes of type CallRepr, i.e. with label in CALL")
285283
def callRepr: Iterator[nodes.CallRepr] = wrapper.graph.nodes("CALL").asScala.asInstanceOf[Iterator[nodes.CallRepr]]
286284

287-
@overflowdb.traversal.help.Doc(
288-
info =
289-
"All nodes of type CfgNode, i.e. with label in ANNOTATION, ANNOTATION_LITERAL, ARRAY_INITIALIZER, BLOCK, CALL, CONTROL_STRUCTURE, FIELD_IDENTIFIER, IDENTIFIER, JUMP_TARGET, LITERAL, METHOD, METHOD_PARAMETER_IN, METHOD_PARAMETER_OUT, METHOD_REF, METHOD_RETURN, RETURN, TEMPLATE_DOM, TYPE_REF, UNKNOWN"
285+
@overflowdb.traversal.help.Doc(info =
286+
"All nodes of type CfgNode, i.e. with label in ANNOTATION, ANNOTATION_LITERAL, ARRAY_INITIALIZER, BLOCK, CALL, CONTROL_STRUCTURE, FIELD_IDENTIFIER, IDENTIFIER, JUMP_TARGET, LITERAL, METHOD, METHOD_PARAMETER_IN, METHOD_PARAMETER_OUT, METHOD_REF, METHOD_RETURN, RETURN, TEMPLATE_DOM, TYPE_REF, UNKNOWN"
290287
)
291288
def cfgNode: Iterator[nodes.CfgNode] = wrapper.graph
292289
.nodes(
@@ -313,18 +310,16 @@ class GeneratedNodeStarterExt(val wrapper: Cpg) extends AnyVal {
313310
.asScala
314311
.asInstanceOf[Iterator[nodes.CfgNode]]
315312

316-
@overflowdb.traversal.help.Doc(
317-
info =
318-
"All nodes of type Declaration, i.e. with label in LOCAL, MEMBER, METHOD, METHOD_PARAMETER_IN, METHOD_PARAMETER_OUT"
313+
@overflowdb.traversal.help.Doc(info =
314+
"All nodes of type Declaration, i.e. with label in LOCAL, MEMBER, METHOD, METHOD_PARAMETER_IN, METHOD_PARAMETER_OUT"
319315
)
320316
def declaration: Iterator[nodes.Declaration] = wrapper.graph
321317
.nodes("LOCAL", "MEMBER", "METHOD", "METHOD_PARAMETER_IN", "METHOD_PARAMETER_OUT")
322318
.asScala
323319
.asInstanceOf[Iterator[nodes.Declaration]]
324320

325-
@overflowdb.traversal.help.Doc(
326-
info =
327-
"All nodes of type Expression, i.e. with label in ANNOTATION, ANNOTATION_LITERAL, ARRAY_INITIALIZER, BLOCK, CALL, CONTROL_STRUCTURE, FIELD_IDENTIFIER, IDENTIFIER, LITERAL, METHOD_REF, RETURN, TEMPLATE_DOM, TYPE_REF, UNKNOWN"
321+
@overflowdb.traversal.help.Doc(info =
322+
"All nodes of type Expression, i.e. with label in ANNOTATION, ANNOTATION_LITERAL, ARRAY_INITIALIZER, BLOCK, CALL, CONTROL_STRUCTURE, FIELD_IDENTIFIER, IDENTIFIER, LITERAL, METHOD_REF, RETURN, TEMPLATE_DOM, TYPE_REF, UNKNOWN"
328323
)
329324
def expression: Iterator[nodes.Expression] = wrapper.graph
330325
.nodes(

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/AliasOf.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object AliasOf {
2929
class AliasOf(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, AliasOf.Label, _outNode, _inNode, AliasOf.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Argument.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Argument {
2929
class Argument(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Argument.Label, _outNode, _inNode, Argument.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Ast.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Ast {
2929
class Ast(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Ast.Label, _outNode, _inNode, Ast.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Binds.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Binds {
2929
class Binds(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Binds.Label, _outNode, _inNode, Binds.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/BindsTo.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object BindsTo {
2929
class BindsTo(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, BindsTo.Label, _outNode, _inNode, BindsTo.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Call.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Call {
2929
class Call(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Call.Label, _outNode, _inNode, Call.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Capture.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Capture {
2929
class Capture(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Capture.Label, _outNode, _inNode, Capture.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/CapturedBy.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object CapturedBy {
2929
class CapturedBy(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, CapturedBy.Label, _outNode, _inNode, CapturedBy.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Cdg.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Cdg {
2929
class Cdg(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Cdg.Label, _outNode, _inNode, Cdg.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Cfg.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Cfg {
2929
class Cfg(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Cfg.Label, _outNode, _inNode, Cfg.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Condition.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Condition {
2929
class Condition(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Condition.Label, _outNode, _inNode, Condition.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Contains.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Contains {
2929
class Contains(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Contains.Label, _outNode, _inNode, Contains.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Dominate.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Dominate {
2929
class Dominate(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Dominate.Label, _outNode, _inNode, Dominate.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/EvalType.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object EvalType {
2929
class EvalType(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, EvalType.Label, _outNode, _inNode, EvalType.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/Imports.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object Imports {
2929
class Imports(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, Imports.Label, _outNode, _inNode, Imports.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/edges/InheritsFrom.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ object InheritsFrom {
2929
class InheritsFrom(_graph: Graph, _outNode: NodeRef[NodeDb], _inNode: NodeRef[NodeDb])
3030
extends Edge(_graph, InheritsFrom.Label, _outNode, _inNode, InheritsFrom.PropertyNames.allAsJava) {
3131

32-
override def propertyDefaultValue(propertyKey: String) =
32+
override def propertyDefaultValue(propertyKey: String) = {
3333
propertyKey match {
3434

3535
case _ => super.propertyDefaultValue(propertyKey)
3636
}
37+
}
3738

3839
}

0 commit comments

Comments
 (0)