34.

You're Better Off Fixing Them

You might have noticed that the Run-On Initializer bug is a bit different from some of the other patterns we've worked with. This time we've provided quite a few ideas on how to work around the root causes, rather than just fixing them outright. That's because, on many occasions, you will have to work around them.

As the considerations we've mentioned indicate, it is far better to avoid run-on initializations altogether. But when you have to deal with them, at least you can protect yourself.



Bug Patterns in Java
Bug Patterns In Java
ISBN: 1590590619
EAN: 2147483647
Year: N/A
Pages: 95
Authors: Eric Allen

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net