Skip to content

Commit

Permalink
fix "The value of the local variable is not used"
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Jan 31, 2024
1 parent 47a04c3 commit 09322fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ private void collectComponentPropertyTypes(IDSDocumentFactory dsFactory,
setPropertyValue(map.get(key), pair.getValue());
}
}
if (propertyType instanceof MarkerAnnotation marker && map.isEmpty()) {
if (propertyType instanceof MarkerAnnotation && map.isEmpty()) {
IDSProperty property = dsFactory.createProperty();
property.setPropertyName(NameGenerator.createClassPropertyName(fqdn, prefix));
property.setPropertyType(IDSConstants.VALUE_PROPERTY_TYPE_BOOLEAN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ record ComponentActivationAnnotation(String activate, Annotation annotation, Met

public boolean isMethod() {
if (binding instanceof IMethodBinding method) {
return !((IMethodBinding) binding).isConstructor();
return !method.isConstructor();
}
return false;
}

public boolean isConstructor() {
if (binding instanceof IMethodBinding method) {
return ((IMethodBinding) binding).isConstructor();
return method.isConstructor();
}
return false;
}
Expand Down

0 comments on commit 09322fb

Please sign in to comment.