Skip to content

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Mar 18, 2025

Fixes #228, #244, part of #237

@dmlloyd dmlloyd added the 2.x Issue applies to Gizmo 2.x label Mar 18, 2025
@dmlloyd dmlloyd merged commit a27ca9f into quarkusio:2.x Mar 18, 2025
2 checks passed
@dmlloyd dmlloyd deleted the switch branch March 18, 2025 21:32
@@ -1,6 +1,6 @@
package io.quarkus.gizmo2.creator;

import static java.lang.constant.ConstantDescs.CD_boolean;
import static java.lang.constant.ConstantDescs.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should not use the * imports. In fact, gizmo should probably use the same rules as Quarkus.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree for class imports. For static imports, especially for classes like this which are designed to be used in this way, I disagree. It seems pointless to expand them all out in this case.

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

Successfully merging this pull request may close these issues.

Gizmo2: switch statement results in IllegalStateException Gizmo2: Switch expressions
2 participants