java: these fields can be converted to local variables

Change-Id: Ifefb5de196a3e5cbaa8945759da42886c69daacf
xmerge: store the original exception in the cause field properly

Change-Id: I154b8b80aabd824edc62a7fdd831074fcf5cb21b
java: scripting: fix bug in removing model from map

found by PMD

Change-Id: I4bd35dd30f6c77aad96932216d8459b812004a88
java: this does not need to be a Thread

It is just being used as a Runnable

Change-Id: I1e652ab0f3b0450d3a85384b9dd513419e2f8046
java: nlpsolver: getPropertyByName was checking the wrong datastructure

Found by PMD

Change-Id: I76d38d71a3379416fe7e5078ef8b121915b26b6b
java: dodgy synchronisation around clear

if we want to synchronize access to this datastructure, and we want
to use it as a lock object, creating a new one is not a good idea

Change-Id: I99c2f665242ef16611bc15a0690b8da222085efb
java: don't synch on an object and also assign to it

Change-Id: Ie0a098e935e640f10b77d259c96bbd1c604d701e
java: synching on a global object is not very useful

when you're using it as a local lock

Change-Id: Ie7f42176f7b582c6dad426d9f8eb0a846a3519c2
java: synching on an interned String object not good

Just remove this field altogether, it was not being used for
anything other than synchronisation.

Change-Id: I982385f9eb7aed3fff0adf85d2a37bfe003d937b
java: unused imports

Change-Id: I7866959b9ea36c81003259cd387a001e9f34f26a
java: dead code

Change-Id: Ief2bf7d3e98186a2268b873c4c5f7114057bd10f
java: fix access to always null field

this cannot have ever worked, but at least it'll stop bugging me now

Change-Id: Idd9738358d18770258ca0648afe4b9256458a4d6
java: static fields that should not be static

Found by FindBugs.

Change-Id: I223841f7bb8c515c9612322abc0b13e134385abd
java: unused import

Change-Id: I5e753737a0dfd024da4ce076645a4ddc2e7550e0