add dependency // 명령줄 컴파일러 또는 Ant를 사용하는 IntelliJ IDEA 프로젝트)에서는 기본적으로 추가됩니다. // 명령줄 컴파일러 및 Ant에서 -no-reflect컴파일러 옵션을 사용 kotlin-reflect.jar하여 // 클래스 경로에서 제외할 수 있습니다. dependencies { implementation "org.jetbrains.kotlin:kotlin-reflect:1.6.21" } Class references - The most basic reflection feature is getting the runtime reference to a Kotlin class. To obtain the reference to a statically known Kotlin..
Unchecked casts - 어떤 type이 들어올지 모르는 상황에서 type을 특정해서 사용하면 아래 warn이 발생한다. Warning: Unchecked cast: `Map` to `Map` - 이 warn은 아래 annotation을 추가하여 제거할 수 있다. @Suppress("UNCHECKED_CAST") fun readDictionary(file: File): Map = file.inputStream().use { TODO("Read a mapping of strings to arbitrary elements.") } // We saved a map with `Int`s into this file val intsFile = File("ints.dictionary") // Warning: ..
//기본적으로 not null var a: String = "abc" // Regular initialization means non-null by default a = null // compilation error //null이 들어올 수 있는 경우는 ? 으로 표현 var b: String? = "abc" // can be set to null b = null // ok print(b) // 명확한 조건 val b: String? = "Kotlin" if (b != null && b.length > 0) { print("String of length ${b.length}") } else { print("Empty string") } // null이면 null을 표현 val a = "Kotlin" val..
- Total
- Today
- Yesterday
- Query DSL
- @Primary
- Akka
- Property
- Sprint RetryTemplate
- RetryTemplate
- Spring
- Charles proxy
- spring spel
- SmartLifecycle
- JPA Criteria
- JPA
- DI
- Registrar
- java Equals
- Embedded Mapping
- Discriminate Mapping
- Join Table
- 복합키 Mapping
- docker
- Embeddable Mapping
- java generic
- guava
- Spring Registrar
- Spring JDBC Template
- java EqualsAndHashCode
- Criteria
- Mapping
- scikit-learn
- Typesafe Config
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |