public static void printOnce ( Object msg ) { if ( messagesCache . get ( msg . hashCode ( ) ) == null ) { JK . printBlock ( msg ) ; messagesCache . put ( msg . hashCode ( ) , msg ) ; } }
Print the message and then save it into list to avoid reporing it again it can be helpfull to debugging purposes .