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

Inconsistent imports #187

Open
lhannest opened this issue Sep 23, 2021 · 0 comments
Open

Inconsistent imports #187

lhannest opened this issue Sep 23, 2021 · 0 comments

Comments

@lhannest
Copy link

lhannest commented Sep 23, 2021

Problem:
I'm having classes generated with imports like:

import java.util.Objects;
import org.assertj.core.api.AbstractObjectAssert;
import org.assertj.core.internal.Iterables;
import org.assertj.core.util.Objects;

And this results in the compile error:

'java.util.Objects' is already defined in a single-type import

Solution:

I'd like to just use fully qualified class names instead of import statements.

I see #97 requested using imports instead of fully qualified class names. Maybe both should be supported, but it should be configurable which one is being used.

Also it looks like this the use of fully qualified class names was already implemented for 2.2.1 with 73d3c5e?

Versions:
I'm using assertj-assertions-generator version 2.2.1, assertj-assertions-generator-maven-plugin version 2.2.0, and assertj-core version 3.21.0.

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