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

4.5 - main.xml is no longer XML #1809

Closed
mikethecalamity opened this issue Nov 15, 2021 · 3 comments
Closed

4.5 - main.xml is no longer XML #1809

mikethecalamity opened this issue Nov 15, 2021 · 3 comments
Labels

Comments

@mikethecalamity
Copy link

I tried upgrading to 4.5.0 but the output from the Gradle spotbugsMain task is no longer XML and really hard to read, even though it is named main.xml

main.xml:

M V EI: my.project.jaxrs.JacksonObjectMapperContextResolver.getContext(Class) may expose internal representation by returning JacksonObjectMapperContextResolver.mapper  At JacksonObjectMapperContextResolver.java:[line 25]
M V EI: my.project.jaxrs.OpenAPISchemaProcessor$Schema.getDefinitions() may expose internal representation by returning OpenAPISchemaProcessor$Schema.definitions  At OpenAPISchemaProcessor.java:[line 274]
M V EI2: my.project.jaxrs.OpenAPISchemaProcessor$Schema.setDefinitions(Map) may expose internal representation by storing an externally mutable object into OpenAPISchemaProcessor$Schema.definitions  At OpenAPISchemaProcessor.java:[line 283]
M V EI: my.project.jaxrs.RestExceptionResponseDTO.getDetails() may expose internal representation by returning RestExceptionResponseDTO.details  At RestExceptionResponseDTO.java:[line 96]
M V EI: my.project.jaxrs.RestExceptionResponseDTO.getRecommendations() may expose internal representation by returning RestExceptionResponseDTO.recommendations  At RestExceptionResponseDTO.java:[line 82]
M V EI2: my.project.jaxrs.RestExceptionResponseDTO.setDetails(List) may expose internal representation by storing an externally mutable object into RestExceptionResponseDTO.details  At RestExceptionResponseDTO.java:[line 103]
M V EI2: my.project.jaxrs.RestExceptionResponseDTO.setRecommendations(List) may expose internal representation by storing an externally mutable object into RestExceptionResponseDTO.recommendations  At RestExceptionResponseDTO.java:[line 89]
M V EI2: new my.project.json.JsonMapper(ObjectMapper, JsonValidator) may expose internal representation by storing an externally mutable object into JsonMapper.mapper  At JsonMapper.java:[line 61]
M V EI2: new my.project.json.JsonValidator(ObjectMapper) may expose internal representation by storing an externally mutable object into JsonValidator.mapper  At JsonValidator.java:[line 72]
M D DCN: Do not catch NullPointerException like in my.project.json.JsonValidator$ResourceURIFetcher.fetch(URI)  At JsonValidator.java:[line 142]
@welcome
Copy link

welcome bot commented Nov 15, 2021

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.

@KengoTODA
Copy link
Member

It could be related to #1804. To remove -sortByClass command-line option, upgrade your Gradle plugin to 4.7.10.

@KengoTODA KengoTODA added the bug label Nov 15, 2021
@mikethecalamity
Copy link
Author

That worked. Thank you.

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

No branches or pull requests

2 participants