Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use diamond operator when creating instances #273

Open
danlz opened this issue Aug 30, 2023 · 0 comments
Open

Use diamond operator when creating instances #273

danlz opened this issue Aug 30, 2023 · 0 comments

Comments

@danlz
Copy link

danlz commented Aug 30, 2023

The generated code provides full generic type information when creating instances of generic classes:

private static final Set<Class<?>> RESOURCE_CLASSES = new HashSet<Class<?>>();

You can use the diamond operator instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant