SUBSTRING_AFTER

Examples:

		ttt.substring(ttt.indexOf("zz")+2)
			...
		
		ttt.substring(ttt.indexOf(zz)+zz.length())
			...
		

Can be refactored as:

		StringUtils.substringAfter(ttt, zz)

library: Apache commons-lang
JavaDoc
Download

See also: SUBSTRING_BEFORE

Home
List of rules