Skip to content

Commit

Permalink
Fixed rebase errors and review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Damtev committed Oct 18, 2022
1 parent 071fb38 commit 772f9c1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ object UtVoidModel : UtModel(voidClassId)
* Model for enum constant
*/
data class UtEnumConstantModel(
override val id: Int?,
override val id: Int,
override val classId: ClassId,
val value: Enum<*>
) : UtReferenceModel(id, classId) {
Expand All @@ -351,7 +351,7 @@ data class UtEnumConstantModel(
* Model for class reference
*/
data class UtClassRefModel(
override val id: Int?,
override val id: Int,
override val classId: ClassId,
val value: Class<*>
) : UtReferenceModel(id, classId) {
Expand Down Expand Up @@ -455,9 +455,7 @@ data class UtArrayModel(
return true
}

override fun hashCode(): Int {
return id
}
override fun hashCode(): Int = id
}

/**
Expand Down Expand Up @@ -524,9 +522,7 @@ data class UtAssembleModel private constructor(
return id == other.id
}

override fun hashCode(): Int {
return id ?: 0
}
override fun hashCode(): Int = id ?: 0
}

/**
Expand Down Expand Up @@ -554,7 +550,7 @@ data class UtAssembleModel private constructor(
*/
// TODO: what about support for Kotlin lambdas and function types? See https://github.com/UnitTestBot/UTBotJava/issues/852
class UtLambdaModel(
override val id: Int?,
override val id: Int,
val samType: ClassId,
val declaringClass: ClassId,
val lambdaName: String,
Expand All @@ -581,9 +577,7 @@ class UtLambdaModel(
return true
}

override fun hashCode(): Int {
return id ?: 0
}
override fun hashCode(): Int = id
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,33 @@ object OpenModulesContainer {
openPackage("java.base", "java.lang")
openPackage("java.base", "java.lang.reflect")
openPackage("java.base", "sun.security.provider")
openPackage("java.base", "jdk.internal.event")
openPackage("java.base", "jdk.internal.jimage")
openPackage("java.base", "jdk.internal.jimage.decompressor")
openPackage("java.base", "jdk.internal.jmod")
openPackage("java.base", "jdk.internal.jtrfs")
openPackage("java.base", "jdk.internal.loader")
openPackage("java.base", "jdk.internal.logger")
openPackage("java.base", "jdk.internal.math")
openPackage("java.base", "jdk.internal.misc")
openPackage("java.base", "jdk.internal.module")
openPackage("java.base", "jdk.internal.org.objectweb.asm.commons")
openPackage("java.base", "jdk.internal.org.objectweb.asm.signature")
openPackage("java.base", "jdk.internal.org.objectweb.asm.tree")
openPackage("java.base", "jdk.internal.org.objectweb.asm.tree.analysis")
openPackage("java.base", "jdk.internal.org.objectweb.asm.util")
openPackage("java.base", "jdk.internal.org.xml.sax")
openPackage("java.base", "jdk.internal.org.xml.sax.helpers")
openPackage("java.base", "jdk.internal.perf")
openPackage("java.base", "jdk.internal.platform")
openPackage("java.base", "jdk.internal.ref")
openPackage("java.base", "jdk.internal.reflect")
openPackage("java.base", "jdk.internal.util")
openPackage("java.base", "jdk.internal.util.jar")
openPackage("java.base", "jdk.internal.util.xml")
openPackage("java.base", "jdk.internal.util.xml.impl")
openPackage("java.base", "jdk.internal.vm")
openPackage("java.base", "jdk.internal.vm.annotation")
add("--illegal-access=warn")
}
}
Expand Down

0 comments on commit 772f9c1

Please sign in to comment.