Compare commits
2 Commits
55fd446005
...
60202be04d
Author | SHA1 | Date |
---|---|---|
Robinson | 60202be04d | |
Robinson | 756c90a6f2 |
|
@ -34,7 +34,7 @@ Maven Info
|
|||
<dependency>
|
||||
<groupId>com.dorkbox</groupId>
|
||||
<artifactId>Config</artifactId>
|
||||
<version>2.6</version>
|
||||
<version>2.7</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
```
|
||||
|
@ -44,7 +44,7 @@ Gradle Info
|
|||
```
|
||||
dependencies {
|
||||
...
|
||||
implementation("com.dorkbox:Config:2.6")
|
||||
implementation("com.dorkbox:Config:2.7")
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ object Extras {
|
|||
// set for the project
|
||||
const val description = "CLI, system properties, environment variables, or JSON text/file input processing."
|
||||
const val group = "com.dorkbox"
|
||||
const val version = "2.6"
|
||||
const val version = "2.7"
|
||||
|
||||
// set as project.ext
|
||||
const val name = "Config"
|
||||
|
|
|
@ -123,7 +123,7 @@ class ConfigProcessor<T : Any>
|
|||
/**
|
||||
* Gets the version number.
|
||||
*/
|
||||
const val version = "2.6"
|
||||
const val version = "2.7"
|
||||
|
||||
init {
|
||||
// Add this project to the updates system, which verifies this class + UUID + version information
|
||||
|
@ -742,7 +742,10 @@ class ConfigProcessor<T : Any>
|
|||
val returnType = prop.returnType
|
||||
|
||||
if (!prop.isSupported()) {
|
||||
LoggerFactory.getLogger(ConfigProcessor::class.java).error("${prop.member.name} (${returnType.javaObjectType.simpleName}) overloading is not supported. Ignoring")
|
||||
if (!prop.ignore) {
|
||||
// only show an error if we are not the proper type. We explicitly ignore BASE collection/array types - so properly ignore those
|
||||
LoggerFactory.getLogger(ConfigProcessor::class.java).error("${prop.member.name} (${returnType.javaObjectType.simpleName}) overloading is not supported. Ignoring")
|
||||
}
|
||||
return@forEach
|
||||
}
|
||||
|
||||
|
|
|
@ -41,6 +41,12 @@ internal data class ConfigProp(val key: String, val parentConf: ConfigProp?, val
|
|||
|
||||
var override = false
|
||||
|
||||
/**
|
||||
* We explicitly ignore BASE collection/array types.
|
||||
*
|
||||
* We have them as part of our parsing logic, so that we can properly set collection/array values, but do not want them for
|
||||
* "general" logic
|
||||
*/
|
||||
@Synchronized
|
||||
fun isSupported(): Boolean {
|
||||
return !ignore && member is KMutableProperty<*>
|
||||
|
|
Loading…
Reference in New Issue