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

Add more rules #53

Open
lyxell opened this issue Jul 5, 2021 · 2 comments
Open

Add more rules #53

lyxell opened this issue Jul 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@lyxell
Copy link
Owner

lyxell commented Jul 5, 2021

@lyxell lyxell added the enhancement New feature or request label Jul 5, 2021
@lyxell
Copy link
Owner Author

lyxell commented Jul 23, 2022

		return childFragments.stream()
				.filter(ElementSourceFragment.class::isInstance)
				.map(ElementSourceFragment.class::cast)
				.map(ElementSourceFragment::getRoleInParent)
				.map(role::equals)
				.findAny()
-				.orElse(false);
+				.isPresent();

@lyxell
Copy link
Owner Author

lyxell commented Jul 23, 2022

     private String getVariableName(String className) {
-       variableCount.computeIfAbsent(className, k -> 0);
-       int count = variableCount.get(className);
+       int count = variableCount.computeIfAbsent(className, k -> 0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant