Skip to content

Commit

Permalink
Remove usage of JetBrains' NotNull annotation and forbid future usage
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Sep 12, 2020
1 parent 7afbe90 commit 0c2876b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import java.util.Map;

import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.engine.AbstractJupiterTestEngineTests;

Expand All @@ -39,7 +38,6 @@ void closesCloseableResourcesInExtensionContext(ExtensionContext extensionContex
store.put("baz", reportEntryOnClose(extensionContext, "3"));
}

@NotNull
private ExtensionContext.Store.CloseableResource reportEntryOnClose(ExtensionContext extensionContext,
String key) {
return () -> extensionContext.publishReportEntry(Map.of(key, "closed"));
Expand Down
3 changes: 3 additions & 0 deletions src/checkstyle/checkstyleMain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<property name="processJavadoc" value="true" />
</module>
<module name="AvoidStarImport"/>
<module name="IllegalImport">
<property name="illegalPkgs" value="org.jetbrains.annotations" />
</module>
</module>

<module name="JavadocPackage" />
Expand Down
3 changes: 3 additions & 0 deletions src/checkstyle/checkstyleTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<property name="processJavadoc" value="true" />
</module>
<module name="AvoidStarImport"/>
<module name="IllegalImport">
<property name="illegalPkgs" value="org.jetbrains.annotations" />
</module>
</module>

<module name="SuppressWarningsFilter" />
Expand Down

0 comments on commit 0c2876b

Please sign in to comment.