<!--
title: Avoid wildcard imports
domain: app-frameworks
topic: Code Style
language: Java
source: quarkusio/quarkus
updated: 2025-05-30
url: https://awesomereviewers.com/reviewers/quarkus-avoid-wildcard-imports/
-->

Wildcard (star) imports like `import java.util.*;` are prohibited in the codebase as they reduce code readability and can cause naming conflicts. Always import specific classes individually.

Configure your IDE to disallow wildcard imports:
- In IntelliJ IDEA: Navigate to Editor -> Code Style -> Java -> Imports and set 'Class count to use import with *' to 999.
- The same setting should be applied for 'Names count to use static import with *'.

Instead of:
```java
import java.util.*;
```

Use:
```java
import java.util.List;
import java.util.Map;
import java.util.Set;
```

This makes dependencies explicit and avoids potential name conflicts when classes with the same name exist in different packages.
