refactoring legacy code for java 8

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

June 2016
M T W T F S S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

Past Posts

Java/Java EE

JDBC

Other

Archive for June, 2016

refactoring legacy code for java 8

June 25th, 2016 by Jeanne Boyarsky

I asked a teammate at CodeRanch if I could use a method he wrote to show how it could be written more clearly/succinctly in Java 8. He said yes. This is the original method. It is 95 lines and has a cyclomatic complexity of 27. First step – write unit tests First, I wrote unit tests for […]

eclipse neon (4.6) for the mac

June 24th, 2016 by Jeanne Boyarsky

eclipse.org went with a neon colored theme to announce the launch of Neon. I found it a bit glaring. The “e” and “n” lights go out after a while which I suppose is cute.  The matrix comparing the packages is still clear. It turns out not to matter if you choose the Java EE version or something else for the […]

eclipse neon – removing redundant types in java 7 diamond operators

June 24th, 2016 by Jeanne Boyarsky

I’m really excited that Neon comes with a feature to remove the redundant types that haven’t been needed since Java 7. For example, List<String> list = new ArrayList<String>(); vs List<String> list = new ArrayList<>(); We have the diamond operator, but there hasn’t been any easy way that I know of for dealing with the old […]