Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: Checking For Errors Without Compiling

Some large Java projects can take a long time to compile. For example, 20 minutes or more. Obviously, on a project of that size you don't want a build failing 18 minutes into it for a missing semicolon.

Will utilities like findbugs or other tools catch compilation errors for you without having to invest the time in compiling?

Thanks in advance either way

Steve

like image 229
Steve Avatar asked Feb 18 '23 20:02

Steve


1 Answers

I would use an IDE. This will show you errors in lines as you type them and even offer auto-fixes for them. They also support incremental compilation so only the files effected by a change need to be re-compiled.

AFAIK Most IDEs support ant and maven builds.

like image 121
Peter Lawrey Avatar answered Feb 27 '23 00:02

Peter Lawrey