From 26d16fe9e8d0de526a1fa1eb8a0e8cbcda810548 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 5 Sep 2019 13:11:52 +0200 Subject: [PATCH] Document wildcard imports --- Code-Style.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Code-Style.md b/Code-Style.md index 93936ae..db88347 100644 --- a/Code-Style.md +++ b/Code-Style.md @@ -76,7 +76,9 @@ The import statements are structured as follow: * blank line * import static all other imports -Also, static imports should not be used in production code. They should be used in test code, especially for things like `org.junit.Assert`. +Static imports should not be used in production code. They should be used in test code, especially for things like `import static org.assertj.core.api.Assertions.assertThat;`. + +Wildcard imports such as `import java.util.*;` or `import static org.assertj.core.api.Assertions.*` are forbidden, even in test code. ### Java source file organization