Skip to content

Lsp4jakarta issue 624#1520

Open
Joseph-Bineesh wants to merge 5 commits intoOpenLiberty:lsp4jakarta-0.2.6-integration-branchfrom
Joseph-Bineesh:lsp4jakarta_issue_624
Open

Lsp4jakarta issue 624#1520
Joseph-Bineesh wants to merge 5 commits intoOpenLiberty:lsp4jakarta-0.2.6-integration-branchfrom
Joseph-Bineesh:lsp4jakarta_issue_624

Conversation

@Joseph-Bineesh
Copy link
Contributor

@Joseph-Bineesh Joseph-Bineesh commented Feb 6, 2026

private boolean validateSetterMethod(PsiMethod method) {
return method.getName().startsWith("set") && PsiTypes.voidType().equals(method.getReturnType())
&& method.getParameterList().getParametersCount() == 1
&& method.getModifierList().hasModifierProperty(PsiModifier.PUBLIC);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to check the property name inside the method name rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not required as of now based on spec. We can add this once we introduce the utility method.

* @return true if the java element name matches the given fully qualified java
* element name and false otherwise.
*/
public static boolean isMatchedJavaElement(PsiClass type, String javaElementName, String javaElementFQName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This method is actually a duplicate.
Could you please use AbstractDiagnosticsCollector.isMatchedJavaElement if possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method is referred from Util class. So avoid using AbstractDiagnosticsCollector.

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

Successfully merging this pull request may close these issues.

2 participants