3 ms·
I assume it can also be used for java server side code?
by svraghavan 11y ago
I assume it can also be used for java server side code?
- _shb 11y agoYes, it can be used with most Java code you can build on the command line. Just run "infer -- <your_build_command>". Currently, this works with javac, Ant, Maven, and Gradle. See http://fbinfer.com/docs/hello-world.html#hello-world-android http://fbinfer.com/docs/hello-world.html#hello-world-android for a Gradle example.
- warmfuzzykitten 11y agoI thought I'd try it with a fairly large project (353K lines of Java) at https://git.eclipse.org/c/hudson/org.eclipse.hudson.core.git/ https://git.eclipse.org/c/hudson/org.eclipse.hudson.core.git... This is a multi-level project. At both the top level and the individual module level, the command below seems to do exactly nothing. Actual output: org.eclipse.hudson.core$ infer -- mvn build org.eclipse.hudson.core$ cd hudson-core/ hudson-core$ infer -- mvn build hudson-core$
- ixtli 11y agoI just used it to evaluate a rather large (50k LOC) java8 application deployed as a war to tomcat8. ( infer -- gradle build ) and it found a bunch of null refs that IntelliJ and humans had all missed.