File tree 2 files changed +6
-7
lines changed
jcdb-core/src/main/kotlin/org/utbot/jcdb/impl/storage
jcdb-testing/src/main/kotlin/org/utbot/jcdb/impl/tests
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,11 @@ class SQLitePersistenceImpl(
38
38
) : JCDBPersistence, Closeable {
39
39
40
40
companion object : KLogging () {
41
+ private const val cachesPrefix = " org.utbot.jcdb.persistence.caches"
41
42
42
- private val locationsCacheSize =
43
- Integer .getInteger(" org.utbot.jcdb.persistence.caches.locations" , 1_000 ).toLong()
44
- private val byteCodeCacheSize =
45
- Integer .getInteger(" org.utbot.jcdb.persistence.caches.bytecode" , 10_000 ).toLong()
46
- private val symbolsCacheSize = Integer .getInteger(" org.utbot.jcdb.persistence.caches.symbols" , 100_000 ).toLong()
43
+ private val locationsCacheSize = Integer .getInteger(" $cachesPrefix .locations" , 1_000 ).toLong()
44
+ private val byteCodeCacheSize = Integer .getInteger(" $cachesPrefix .bytecode" , 10_000 ).toLong()
45
+ private val symbolsCacheSize = Integer .getInteger(" $cachesPrefix .symbols" , 100_000 ).toLong()
47
46
}
48
47
49
48
private val lock = ReentrantLock ()
Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ abstract class DatabaseEnvTest {
125
125
assertEquals(" byte[]" , type.typeName)
126
126
}
127
127
128
- with (fields.get( 1 ) ) {
128
+ with (fields[ 1 ] ) {
129
129
assertEquals(" objectArray" , name)
130
130
assertEquals(" java.lang.Object[]" , type.typeName)
131
131
}
132
132
133
- with (fields.get( 2 ) ) {
133
+ with (fields[ 2 ] ) {
134
134
assertEquals(" objectObjectArray" , name)
135
135
assertEquals(" java.lang.Object[][]" , type.typeName)
136
136
}
You can’t perform that action at this time.
0 commit comments