Core Java
-

New Javadoc Tags @apiNote, @implSpec and @implNote
If you’re already using Java 8, you might have seen some new Javadoc tags: @apiNote, @implSpec and @implNote. What’s up…
Read More » -

Multiple Return Statements
I once heard that in the past people strived for methods to have a single exit point. I understood this…
Read More » -

Testing with files and directories in JUnit with @Rule
Testing with Files and directories in JUnit is easy thanks to TemporaryFolder @Rule. In JUnit rules (@Rule) can be used…
Read More » -

Instances of Non-Capturing Lambdas
Roughly a month ago, I summarized Brian Goetz’ peek under the hood of lambda expressions in Java 8. Currently I’m…
Read More » -

Java8 Sorting – Performance Pitfall
Java 8 brings all the goodness of lambdas to enable us to program using a declarative style. But is it…
Read More » -

Unit Testing in AEM (thinking loud)
This is not a recommendation of any sorts but a culmination of ideas and a few options that are available…
Read More » -

My favourite Java puzzler 2 + 1 = 4
Here’s my current favourite Java puzzler. How can you get your code to do this? …
Read More » -

Fail-fast validations using Java 8 streams
I’ve lost count of the number of times I’ve seen code which fail-fast validates the state of something, using an…
Read More » -

Why Now is the Perfect Time to Upgrade to Java 8
Interested to see how you can get the most out of the new Java 8 features with AppDynamics? Start a…
Read More »

