Hot Posts

Java 8

Java is #1: But we knew that already

January 12, 2017 // 0 Comments

It’s always nice to have your commitment to Java confirmed and this month it was TIOBE who showed that Java is still the number one most used programming languages, however, it’s share shrunk, by 4.19%, as did the second-place contender C, which shrunk by 6.69%. What does this mean? Are we seeing a shift in the languages developers [ continue reading ... ]

PowerMock and Java8 Streams

October 2, 2016 // 0 Comments

Recently I was writing some units tests, as all good developers should, and ran into an issue with a test that made use of the IntStream of(int t) method. The test execution failed and throw the following exception: java.lang.IllegalStateException: Failed to transform class with name com.readlearncode.ServiceTest. Reason: [ continue reading ... ]

Java 8 Streams: .filter and predicate negation

November 17, 2015 // 1 Comment

Recently there was an interesting discussion on the use of predicate negation in the .filter method on a stream by members of the LJC mailing list, so I thought it would be worth summarizing it in a blog post. The discussion was about ways to use .filter and to negate the predicate. Code for this post is available in my GitHub account. This is [ continue reading ... ]