Re: question about String.stripIndent method

2020-01-12 Thread Chris T
Jim, this was the information that somehow I was not able to wrap my mind around: "So it all comes down to the last line being blank or not blank. A blank line becomes an empty line due to stripping of trailing blanks." Any character inserted on the last line (ending with """) will actually autom

Re: question about String.stripIndent method

2020-01-12 Thread Jim Laskey
Chris, String::stripIndent might not be the routine you are looking for. It is provided to duplicate the actions performed by the compiler when processing a Text Block. To use String::stripIndent as a method to strip indentation in the way you might expect you might have to massage the input st

question about String.stripIndent method

2020-01-11 Thread Chris T
Hi, I am working on an educational material about OpenJDK 14. Downloaded the code, compiled it and while "playing" with the new features I found something that seems to be inconsistent (maybe a bug?). So here we go: I defined this method: public void questionToOpenJDKPossibleBugOnStripIdent() {