Java Clean Code Tutorial #1 - Eclipse Compiler Build Errors & Warnings Preferences

preview_player
Показать описание
Episode 1 of the free Java Clean Code Training Series.

Many new and experienced Java developers often overlook the importance of having high severity levels on their Eclipse IDE Java Compiler Errors & Warnings. This simple IDE feature can and will identify many bugs early on and stop them from progressing into source control.

Eclipse, Spring Tool Suite and many other IDEs have customisable compiler build / warning preference levels. To access go to Preferences, Java, Compiler, Errors/Warnings. I suggest you review your current severity levels and adjust the majority to ERROR. This will flag up many unseen bugs, potential programming problems, unnecessary code and improvements at compile time. E.g. Unreachable code, null pointer access and redundant code.

Once you are happy with your settings, you can export the preferences to a .pref file via File, Export, Preferences. To import the file, File, Import, Preferences. You can share this file with your team and also import it to any new workspaces you may have.

Why clean code?
Simple. Clean code allows us to confidently make changes and deliver more features quickly to our customers.

Don’t forget to subscribe for your regular dose of Java Tutorials!

STOP THE ROT.

Till episode 2,
Philip
Рекомендации по теме
Комментарии
Автор

Before build, rectify null pointer exception... Nice tip

sambeetnayak
Автор

Good, I like the way that you are providing this content! good work!
thanks !

islamdariusouahouda