Safe refactorings when migrating from Java 6 to Java 7 -
what safe refactorings when migrating application java 6 java 7?
for example 1 can consider using new diamond operator, new automatic resource management a.k.a. try resources, multi-catch functionality there more?
diamond operator / type inference safe.
try-with-resources safe. if didn't close of files, streams before, correct few bugs free. may have side effects.
multi-catch has same caveats, if replace catch (exception) or worse: catch (throwable) proper multi-catching, have throwables bubbling stack got caught before (nullpointerexceptions , mostly).
Comments
Post a Comment