Today’s warnings are tomorrow’s compilation errors

How often do you clean up warnings in your code? I was just reminded of warnings by looking at the build output on some code that I’m working on.

You might see a message like this when you compile:

Compilation completed successfully with 42 warnings in 50s 223ms

Whoo hooo! Feels good when code compiles…wait, not just compiles but compiles successfully!

Only look at the next part: “…with 42 warnings.” Uh oh! A lot of times you’ll look at these warnings and they’re easy to clean up. In my case quite a few of them are calls to deprecated JodaTime methods. Easy to clean up! Wouldn’t take very long!

I think I’ll get on that right now…

Leave a Reply

Your email address will not be published. Required fields are marked *