There were two similar classes (CurseWordFilterThread and AdvertiseFilterThread) in the method readFile and the refactoring used was the extract Superclass so that it would increase readability and portability.
Code Smell: Duplicated Code
Classes: CurseWordFilterThread and AdvertiseFilterThread
Methods: readFile (in both classes)
Refactoring: Extract Superclass
Diff: