only apply _method to the method if it is not empty.
only apply _method to the method if it is not empty.

--HG--
extra : convert_revision : svn%3A77541ad4-5f01-0410-9ede-a1b63cd9a898/trunk%406097

lucius-feng/tg2,lucius-feng/tg2