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

Code cleanup for inject-java #10949

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

altro3
Copy link
Contributor

@altro3 altro3 commented Jul 5, 2024

No description provided.

@altro3 altro3 force-pushed the cleanup-inject-java branch 4 times, most recently from bf564ee to 8262f03 Compare July 5, 2024 10:26
}

@NonNull
@Override
public ClassElement withTypeArguments(@NonNull Collection<ClassElement> typeArguments) {
if (getTypeArguments().equals(typeArguments)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code is incorrect. You try to compare map with collection

@@ -618,8 +622,8 @@ public Optional<ClassElement> getEnclosingType() {
Element enclosingElement = this.classElement.getEnclosingElement();
if (enclosingElement instanceof TypeElement typeElement) {
return Optional.of(visitorContext.getElementFactory().newClassElement(
typeElement,
elementAnnotationMetadataFactory
Copy link
Contributor Author

Choose a reason for hiding this comment

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

you have 2 styles in these classes. Which continuation indent right? 8 spaces or 4 spaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@graemerocher could you tell me which codestyle is right?

@@ -431,7 +435,7 @@ public <T extends io.micronaut.inject.ast.Element> List<T> getEnclosedElements(@
* {@link io.micronaut.inject.ast.ElementFactory#newSourceMethodElement(ClassElement, Object, ElementAnnotationMetadataFactory)}.
*
* @param query The query
* @param <T> The element type
Copy link
Contributor Author

Choose a reason for hiding this comment

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

you have 2 styles in these classes. Do we need Align parameter / thrown exception decriptions or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@graemerocher could you tell me which codestyle is right?

@Override
public boolean isPrimitive() {
return false;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unnecessary describe default implementation

@altro3 altro3 force-pushed the cleanup-inject-java branch from 8262f03 to 0f43f74 Compare July 7, 2024 05:58

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@altro3 altro3 force-pushed the cleanup-inject-java branch from 0f43f74 to aba094d Compare July 7, 2024 06:09
@graemerocher graemerocher added the type: improvement A minor improvement to an existing feature label Jul 8, 2024
@altro3
Copy link
Contributor Author

altro3 commented Jul 10, 2024

@graemerocher Repeat questions:

you have 2 styles in these classes. Which continuation indent right? 8 spaces or 4 spaces?

you have 2 styles in these classes. Do we need Align parameter / thrown exception decriptions or not?

@graemerocher
Copy link
Contributor

whatever check style says is correct :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants