G's Blog
Thursday, March 10, 2016
Lambda of Lambda, if/else from an Optional
›
So I got frustrated with two limitations of the Optional interface in JDK 8. The first problem is that there is no obvious way to perform an...
Wednesday, March 2, 2016
Getting hold of an un-used port when writing a test
›
A really quick post today, I was writing a unit test that needed to put up a temporary JAX-RS resource in order to test something very speci...
Wednesday, January 20, 2016
Removing multiple items from a JavaScript array, no for loops
›
So I was reviewing some code today that was using two for loops to remove elements from a JavaScript array, I won't relate the code here...
Tuesday, January 12, 2016
Beware of slightly different behaviour between ConcurrentMap and ConcurrentHashMap for computeIfAbsent
›
So I was refactoring some code to use non-locking collection classes and I noticed the this significant different between ConcurrentMap.comp...
Wednesday, November 25, 2015
A very simple implementation of Suite to make it easy to run across a bunch of test machines at the same time.
›
So I was presented with a large suite that I need to distribute amongst an arbitrary number of Hudson slaves. Now my first guess would be to...
Friday, July 31, 2015
Creating a shared library for Jersey 2.19 to use with Weblogic 12.1.3
›
Weblogic server comes with a shared library so you can deploy JAX-RS 2.0 applications; but is limited to Jersey version 2.5.1 and the instru...
Monday, March 9, 2015
Quick and dirty test for thread leakage in java
›
I was looking at a bit of code was leaking class loaders when deployed to tomcat - so I wanted to quick rule out that a background Thread wa...
‹
›
Home
View web version