Per discussion on HADOOP-13700, I'd like to revert HADOOP-13534. It removes a deprecated API, but the 2.x line does not have a release with the new replacement API. This places a burden on downstream applications.
Remove unthrown IOException from TrashPolicy#initialize and #getInstance signatures
Remove unused TrashPolicy#getInstance and initialize code
Patch attached. Clean revert.
This message was automatically generated.
+1. Thanks Andrew.
Thanks Andrew Wang for the patch. This should take care of the issues I encountered.
Thanks Akira and Haibo for reviewing, I've pushed this to trunk.
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10589 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10589/)
HADOOP-13705. Revert HADOOP-13534 Remove unused TrashPolicy#getInstance (wang: rev 8a09bf7c19d9d2f6d6853d45e11b0d38c7c67f2a)