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

feature(spring-mvc): detect endpoint methods with either protected or package-private visibility #165

Merged

Conversation

murdos
Copy link
Contributor

@murdos murdos commented Sep 2, 2024

This methods are valid Spring endpoints, so they should be correctly detected

@murdos murdos mentioned this pull request Sep 3, 2024
@murdos murdos marked this pull request as draft September 4, 2024 06:25
@murdos murdos force-pushed the fix/spring-package-private-endpoints branch 2 times, most recently from c84ed4a to 0b562b5 Compare September 4, 2024 21:52
@murdos murdos marked this pull request as ready for review September 4, 2024 21:53
@murdos murdos force-pushed the fix/spring-package-private-endpoints branch from 0b562b5 to 9755055 Compare September 7, 2024 11:10
@murdos
Copy link
Contributor Author

murdos commented Sep 7, 2024

Requires #168

@murdos murdos force-pushed the fix/spring-package-private-endpoints branch from 9755055 to dae4b22 Compare September 7, 2024 11:24
Copy link
Owner

@kbuntrock kbuntrock left a comment

Choose a reason for hiding this comment

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

Thank you for this nice PR, nothing much to say

@@ -39,20 +37,6 @@ public static ClassLoader getProjectClassLoader() {
return ReflectionsUtils.projectClassLoader;
}

public static ConfigurationBuilder createConfigurationBuilder() {
Copy link
Owner

Choose a reason for hiding this comment

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

I like this! the "testMode" boolean is not needed anymore now, I will remove it.

@@ -698,6 +701,14 @@ public void collection() throws MojoFailureException, IOException, MojoExecution
checkGenerationResult("ut/SpringClassAnalyserTest/collection.yml", generated.get(0));
}

@Test
public void package_private() throws MojoFailureException, IOException, MojoExecutionException {
Copy link
Owner

Choose a reason for hiding this comment

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

perfect, tests are a must have! 👍

@kbuntrock kbuntrock merged commit 2ea8886 into kbuntrock:dev Oct 2, 2024
1 check passed
@murdos murdos deleted the fix/spring-package-private-endpoints branch October 2, 2024 22:23
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