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

When AnalysisRunner has findbugs.xml in jar, don't create temp jar #183

Merged
merged 1 commit into from
May 31, 2017

Conversation

kzaikin
Copy link
Contributor

@kzaikin kzaikin commented May 27, 2017

When AnalysisRunner is using spotbugs.jar, then there's no need to create temp jar for resources

fix #156

* @return a {@link File} instance which represent generated jar file
* @throws IOException
* @throws URISyntaxException
*/
private static File createTempJar() throws IOException, URISyntaxException {
ClassLoader cl = AnalysisRunner.class.getClassLoader();

URL resource = cl.getResource("findbugs.xml");
URI uri = resource.toURI();
Copy link
Contributor Author

@kzaikin kzaikin May 29, 2017

Choose a reason for hiding this comment

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

the resource might be null here, but I think it's ok to fall with NPE in tests when test configuration is unexpected

@kzaikin
Copy link
Contributor Author

kzaikin commented May 30, 2017

@KengoTODA I am not sure what should I do to have this PR reviewed?
This PR fixes disabled tests

Copy link
Member

@iloveeclipse iloveeclipse left a comment

Choose a reason for hiding this comment

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

Thanks.

@iloveeclipse iloveeclipse merged commit 4f5b014 into spotbugs:master May 31, 2017
@KengoTODA KengoTODA added this to the SpotBugs 3.1.0 milestone Jun 1, 2017
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.

Enable tests disabled in #154
3 participants