Java
-
Java Hidden code
Sometime ago I came across the issue of invisible characters in Strings. These can really cause confusion because they are…
Read More » -
Spring 3.1 Caching and @CacheEvict
My last blog demonstrated the application of Spring 3.1’s @Cacheable annotation that’s used to mark methods whose return values will be stored…
Read More » -
Duck typing in Java ? Well, not exactly
According to Wikipedia duck typing is: style of dynamic typing in which an object’s methods and properties determine the valid…
Read More » -
Apache Wicket: Remember Me functionality
It is quite common in web applications to have “Remember Me” functionality that allows user to be automatically logged in…
Read More » -
Building OpenJDK on Windows
Doing some experiments, I found that it often useful to have JDK source code available in hand to make some…
Read More » -
Java Annotations – Retention
Consider a Java annotation: public @interface AnAnnotaton { } A class with this annotation applied on it: @AnAnnotaton class AnAnnotatedClass{…
Read More » -
Maven Cargo plugin for Integration Testing
A very common need in the lifecycle of a project is setting up integration testing. Luckily, Maven has built-in support…
Read More » -
A Generic and Concurrent Object Pool
In this post we will take a look at how we can create an object pool in Java. In recent…
Read More » -
Make JFrame transparent
First create a frame that has a slider in it which will be used to set transparency amount. import javax.swing.JFrame;…
Read More »