java inline method: cleanup after review