Re: RFR: 8274496: Use String.contains() instead of String.indexOf() in java.desktop

2021-09-29 Thread Sergey Bylokhov
On Fri, 17 Sep 2021 15:46:51 GMT, Andrey Turbanov wrote: > String.contains was introduced in Java 5. > Some code in java.desktop still uses old approach with String.indexOf to > check if String contains specified substring. > I propose to migrate such usages. Makes code shorter and easier to re

Re: RFR: 8274496: Use String.contains() instead of String.indexOf() in java.desktop

2021-09-29 Thread Pankaj Bansal
On Fri, 17 Sep 2021 15:46:51 GMT, Andrey Turbanov wrote: > String.contains was introduced in Java 5. > Some code in java.desktop still uses old approach with String.indexOf to > check if String contains specified substring. > I propose to migrate such usages. Makes code shorter and easier to re

Re: RFR: 8274496: Use String.contains() instead of String.indexOf() in java.desktop

2021-09-29 Thread Sergey Bylokhov
On Fri, 17 Sep 2021 15:46:51 GMT, Andrey Turbanov wrote: > String.contains was introduced in Java 5. > Some code in java.desktop still uses old approach with String.indexOf to > check if String contains specified substring. > I propose to migrate such usages. Makes code shorter and easier to re

RFR: 8274496: Use String.contains() instead of String.indexOf() in java.desktop

2021-09-29 Thread Andrey Turbanov
String.contains was introduced in Java 5. Some code in java.desktop still uses old approach with String.indexOf to check if String contains specified substring. I propose to migrate such usages. Makes code shorter and easier to read. - Commit messages: - [PATCH] Use String.contains(