String.contains was introduced in Java 5. Some code in java.naming still uses old approach with String.indexOf to check if String contains specified substring. I propose to migrate such usages. Mak ...