From ab31f8a0740b56c64adb89bae219ac8d4550c849 Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sun, 11 Apr 2021 11:53:44 +0300 Subject: [PATCH] Plan API 5.2-R0.5: More lenient TabInfo annotation usage - No more warning when TabInfo is defined without Tab annotations. This is because builders can define tabs regardless. --- Plan/api/build.gradle | 2 +- .../plan/extension/extractor/ExtensionExtractor.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Plan/api/build.gradle b/Plan/api/build.gradle index 05a4ca382..be4217462 100644 --- a/Plan/api/build.gradle +++ b/Plan/api/build.gradle @@ -4,7 +4,7 @@ dependencies { compileOnly "com.google.code.gson:gson:$gsonVersion" } -ext.apiVersion = '5.2-R0.4' +ext.apiVersion = '5.2-R0.5' publishing { repositories { diff --git a/Plan/api/src/main/java/com/djrapitops/plan/extension/extractor/ExtensionExtractor.java b/Plan/api/src/main/java/com/djrapitops/plan/extension/extractor/ExtensionExtractor.java index 71c2a4165..7165a052d 100644 --- a/Plan/api/src/main/java/com/djrapitops/plan/extension/extractor/ExtensionExtractor.java +++ b/Plan/api/src/main/java/com/djrapitops/plan/extension/extractor/ExtensionExtractor.java @@ -384,10 +384,6 @@ public final class ExtensionExtractor { if (tabName.length() > 50) { warnings.add(extensionName + " TabInfo " + tabName + " 'name" + WAS_OVER_50_CHARACTERS); } - - if (!tabNames.contains(tabName)) { - warnings.add(extensionName + " has TabInfo for " + tabName + ", but it is not used."); - } } // Check Tab name lengths