Use RandomInputStream for memory-mapped diffing
Remove unused imports
Suppress warning