Removes unnecessary copies of .java files.