Java:在不编译的情况下检查错误(Java: Checking For Errors Without Compiling)

编程入门 行业动态 更新时间:2024-10-28 18:23:40
Java:在不编译的情况下检查错误(Java: Checking For Errors Without Compiling)

一些大型Java项目可能需要很长时间才能编译。 例如,20分钟或更长时间。 显然,在这样大小的项目中,你不希望构建失败18分钟,因为缺少分号。

像findbugs或其他工具这样的实用程序是否会为您捕获编译错误而无需花时间进行编译?

提前谢谢

史蒂夫

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

最满意答案

我会使用IDE。 这将在您键入行时显示行中的错误,甚至为它们提供自动修复。 它们还支持增量编译,因此只需要重新编译受更改影响的文件。

AFAIK大多数IDE都支持ant和maven构建。

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.

更多推荐

本文发布于:2023-07-04 17:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1027088.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:情况下   错误   Java   Compiling   Errors

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!