While working on the Java 5 upgrade, I found that the ThreeKeyCache is not strongly typed. To work around this problem, I had to add four lines of code to copy the data to a new strongly typed set.
public Set getFileTypes(FilePattern filePattern, boolean removeWildCard) { if (containsFilePattern(filePattern)) { Set