Skip to content

changes based on the results of static code analysis by Findbugs #2324

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

Closed
wants to merge 4 commits into from
Closed

changes based on the results of static code analysis by Findbugs #2324

wants to merge 4 commits into from

Conversation

dk2k
Copy link
Contributor

@dk2k dk2k commented Oct 4, 2021

As for removed Assert - its condition is always true, can be checked in Intellij Idea as well

@pivotal-cla
Copy link

@dk2k Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@dk2k
Copy link
Contributor Author

dk2k commented Oct 4, 2021

What do I do now to restart checks?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 4, 2021
@pivotal-cla
Copy link

@dk2k Thank you for signing the Contributor License Agreement!


return classLoader != null && LazyJvmAgent.isActive(loader.getClassLoader())
AtomicReference<ClassLoader> classLoaderRef = new AtomicReference<>();
AccessController.doPrivileged(new PrivilegedAction() {
Copy link
Member

Choose a reason for hiding this comment

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

AccessController is subject to deprecation and future removal with the deprecation of Java's Security Manager.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will revert related changes then

@@ -160,7 +160,7 @@
PathNode node = currentNode.add(attribute.getName(), attributeValue);
if (node.spansCycle()) {
throw new InvalidDataAccessApiUsageException(
String.format("Path '%s' from root %s must not span a cyclic property reference!\r\n%s", currentPath,
String.format("Path '%s' from root %s must not span a cyclic property reference!%n%s", currentPath,
Copy link
Member

Choose a reason for hiding this comment

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

From a general perspective, we should avoid linebreaks in exceptions. That's something we need to address within the team.

schauder pushed a commit that referenced this pull request Jan 12, 2022
schauder added a commit that referenced this pull request Jan 12, 2022
Original pull request #2324
@schauder
Copy link
Contributor

Thanks, that's merged.

@schauder schauder closed this Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants