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

Popular posts from this blog

jOOQ update returning clause with Oracle -

c# - Json.Net Serialize String from URI -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -