Replaces << (deprecated in 4.x and removed in 5.0) with doLast.
am: e81a22cf78

Change-Id: I50b89d523326168ed14bf0674ccc9a5e476aca2d