fix problems with empty prefixes
not using com.sun.tools.javac.util.ListBuffer, code cleaned up
add test case when input prefixes is null
Merge pull request #191 from Du-Li/fix-empty-exclusion-prefix

fix problems with empty exclusion prefixes