trivial syntax clean-up in scala adaptor