Skip to content

Commit fc5a748

Browse files
fixed EVEN MORE checkstyle problems
1 parent 65f5c5e commit fc5a748

38 files changed

Lines changed: 218 additions & 51 deletions

‎checkstyle/checkstyle.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ See https://checkstyle.org/ for more information.
8282
<property name="ignoreComments" value="true"/>
8383
</module>
8484
<module name="MethodLength">
85-
<property name="max" value="50"/>
85+
<property name="max" value="75"/>
8686
</module>
8787
<module name="MissingOverride"/>
8888
<module name="EmptyForInitializerPad"/>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
package net.javadiscord.javabot.data.config;
22

3+
/**
4+
* Exception that is thrown when a invalid config property is requested.
5+
*/
36
public class InvalidPropertyValueException extends Exception {
47
}

‎src/main/java/net/javadiscord/javabot/data/config/UnknownPropertyException.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
import lombok.Getter;
44

5+
/**
6+
* Exception class that handles unknown config properties.
7+
*/
58
@Getter
69
public class UnknownPropertyException extends Exception {
710
private final String propertyName;
811
private final Object parentClass;
912

13+
/**
14+
* Exception that is thrown when a config property does not exist or could not be found.
15+
* @param propertyName The properties' name.
16+
* @param parentClass The parent class.
17+
*/
1018
public UnknownPropertyException(String propertyName, Class<?> parentClass) {
1119
super(String.format("No property named \"%s\" could be found for class %s.", propertyName, parentClass));
1220
this.propertyName = propertyName;

‎src/main/java/net/javadiscord/javabot/data/config/guild/JamConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
import java.awt.*;
1111

12+
/**
13+
* Configuration for the guild's java jam.
14+
*/
1215
@Data
1316
@EqualsAndHashCode(callSuper = true)
1417
public class JamConfig extends GuildConfigItem {

‎src/main/java/net/javadiscord/javabot/data/config/guild/ModerationConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import net.dv8tion.jda.api.entities.TextChannel;
77
import net.javadiscord.javabot.data.config.GuildConfigItem;
88

9+
/**
10+
* Configuration for the guild's moderation system.
11+
*/
912
@Data
1013
@EqualsAndHashCode(callSuper = true)
1114
public class ModerationConfig extends GuildConfigItem {

‎src/main/java/net/javadiscord/javabot/data/config/guild/QOTWConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
import net.dv8tion.jda.api.entities.TextChannel;
88
import net.javadiscord.javabot.data.config.GuildConfigItem;
99

10+
/**
11+
* Configuration for the guild's qotw system.
12+
*/
1013
@Data
1114
@EqualsAndHashCode(callSuper = true)
1215
public class QOTWConfig extends GuildConfigItem {

‎src/main/java/net/javadiscord/javabot/data/config/guild/ServerLockConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import lombok.EqualsAndHashCode;
55
import net.javadiscord.javabot.data.config.GuildConfigItem;
66

7+
/**
8+
* Configuration for the guild's serverlock system.
9+
*/
710
@Data
811
@EqualsAndHashCode(callSuper = true)
912
public class ServerLockConfig extends GuildConfigItem {

‎src/main/java/net/javadiscord/javabot/data/config/guild/SlashCommandConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
import java.awt.*;
88

9+
/**
10+
* Configuration for the bot's slash commands.
11+
*/
912
@Data
1013
@EqualsAndHashCode(callSuper = true)
1114
public class SlashCommandConfig extends GuildConfigItem {

‎src/main/java/net/javadiscord/javabot/data/config/guild/StarboardConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import java.util.ArrayList;
99
import java.util.List;
1010

11+
/**
12+
* Configuration for the guild's starboard system.
13+
*/
1114
@Data
1215
@EqualsAndHashCode(callSuper = true)
1316
public class StarboardConfig extends GuildConfigItem {

‎src/main/java/net/javadiscord/javabot/data/config/guild/StatsConfig.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import net.dv8tion.jda.api.entities.Category;
66
import net.javadiscord.javabot.data.config.GuildConfigItem;
77

8+
/**
9+
* Configuration for the guild's stats system.
10+
*/
811
@Data
912
@EqualsAndHashCode(callSuper = true)
1013
public class StatsConfig extends GuildConfigItem {

0 commit comments

Comments
 (0)