brooklyncentral/brooklyn — pull request #125 by aledsage (2012-05-24 16:22:06+00:00)
Title: Converting more task-code from groovy to java

Annoyingly, it looks like git (and thus github) doesn't show nice diff of edits when you `git mv file1 file2` and then edit file2. It's hard to do much else to make this easy for reviewers: the rename obviously causes things to not compile so I don't want that to be a commit by itself.

However, I tried to keep the changes as simple as possible when converting from groovy to java. Mostly it's syntax plus changing closures to callables/runnables. In a couple of places I had to add a method taking Object and a method taking Predicate so that I could write Java properly....

A second commit does a small amount of cleanup.

But more will be needed. Particularly to remove the ugly ExecutionManager.submit(Map,Object).