-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Code cleanup for inject-java #10949
Conversation
bf564ee
to
8262f03
Compare
} | ||
|
||
@NonNull | ||
@Override | ||
public ClassElement withTypeArguments(@NonNull Collection<ClassElement> typeArguments) { | ||
if (getTypeArguments().equals(typeArguments)) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary describe default implementation
8262f03
to
0f43f74
Compare
0f43f74
to
aba094d
Compare
@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? |
whatever check style says is correct :) |
No description provided.