Skip to content

Commit

Permalink
Fixed setters
Browse files Browse the repository at this point in the history
  • Loading branch information
mikigal committed Nov 9, 2021
1 parent 9c00c52 commit 768f30d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ maven {
url = 'https://repo.mikigal.pl/releases'
}
compile group: 'pl.mikigal', name: 'ConfigAPI', version: '1.1.9'
compile group: 'pl.mikigal', name: 'ConfigAPI', version: '1.2.0'
```

#### Maven
Expand All @@ -34,7 +34,7 @@ compile group: 'pl.mikigal', name: 'ConfigAPI', version: '1.1.9'
<dependency>
<groupId>pl.mikigal</groupId>
<artifactId>ConfigAPI</artifactId>
<version>1.1.8</version>
<version>1.2.0</version>
<scope>compile</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'pl.mikigal'
version '1.1.9'
version '1.2.0'

publishing {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private boolean updateConfigFile() {
throw new InvalidConfigException("Found non getter/setter method (name: " + name + ") in " + clazz.getCanonicalName());
}

if (method.getParameters().length != 0) {
if (!name.startsWith("set") && method.getParameters().length != 0) {
throw new InvalidConfigException("Found method with parameters (name: " + name + ") in " + clazz.getCanonicalName());
}

Expand Down

0 comments on commit 768f30d

Please sign in to comment.