We are using a Tool in our project. This tool has its own language which is similar to Java. I am looking for a sta开发者_如何学编程tic analysis tool which can be applied to the new language.
It\'s common knowledge that you shouldn\'t use a StringBuilder in place of a small number of concatenations:
I have experimented with several different static analyzers for Java, notably Fin开发者_JAVA百科dbugs and PMD.
Here is a number of code snippets that can throw NullPointerException. 01: public void m1(@Nullable String text) {
When I run FindBugs on this code, it reports NO issues. boolean _closed = false; public void m1(@Nullable String text) {
Consider such code public void m1(String text) { if(text == null) text = \"<empty>\"; System.out.println(text.toLowerCase());
I am looking for a free static checker for C99 code (including GCC extensions) with the ability to explic开发者_StackOverflow社区itly say \"these preprocessor macros are always defined.\"
I\'m looking for such a tool 开发者_如何学Cto be able to check fast if I catch all the exceptions I generate myself.
Current static source analysis tools for C# (or other .NET languages) usually operate on the assembly-level. They use reflection to analyse the code.
Currently I am making a survey about source code analysis and the thing that puzzles me greatly is what is it that project managers and developers would like to filter when analyzing s开发者_StackOver