The patch removes one for each of the following duplicate files:
The newer file (added in
HADOOP-7119) had just one additional method, and was used at fewer places. The method is ported to the other KerberosName.java.
The two tests have identical testcases except that two principals were using different realms. The test was failing because in 20 the default realm for tests is APACHE.ORG, while the test was passing LOCALHOST. In trunk the same test passes because in trunk default realm is parametrized.
I removed one because fixing the above would mean to put same realm as the default one and that would make the two tests exactly identical.