apply change made to pure-java to other versions

Signed-off-by: Mattias Andrée <maandree@operamail.com>
apply change made to pure-java to other versions

Signed-off-by: Mattias Andrée <maandree@operamail.com>