Skip to content

Commit 34a474b

Browse files
committed
Removed unused framework option
1 parent 31f6572 commit 34a474b

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/main/java/dev/despical/commandframework/options/FrameworkOption.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* @see FrameworkOption#CUSTOM_COOLDOWN_CHECKER
2929
* @see FrameworkOption#CONFIRMATIONS
3030
* @see FrameworkOption#DEBUG
31-
* @see FrameworkOption#REPORT_SCAN_WARNINGS
3231
*/
3332
public enum FrameworkOption {
3433

@@ -45,14 +44,5 @@ public enum FrameworkOption {
4544
/**
4645
* This option enables the debug mode for this framework.
4746
*/
48-
DEBUG,
49-
50-
/**
51-
* Specifies whether the framework should log warnings for potential issues found during
52-
* automatic package scanning.
53-
* <p>
54-
* For example, if a class contains command annotations but lacks a public no-args
55-
* constructor, it cannot be instantiated and registered.
56-
*/
57-
REPORT_SCAN_WARNINGS,
47+
DEBUG
5848
}

src/main/java/dev/despical/commandframework/options/OptionManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
*/
3838
public final class OptionManager {
3939

40-
private final Set<FrameworkOption> frameworkOptions = EnumSet.of(
41-
FrameworkOption.REPORT_SCAN_WARNINGS
42-
);
40+
private final Set<FrameworkOption> frameworkOptions = EnumSet.noneOf(FrameworkOption.class);
4341

4442
public void enableOption(FrameworkOption frameworkOption) {
4543
this.frameworkOptions.add(frameworkOption);

0 commit comments

Comments
 (0)