Re: RFR: JDK-8242532 convert tests to use Text Blocks

2020-05-08 Thread Jonathan Gibbons
Hi Kumar, Thanks for spotting this. The cause is the equivalent strange indent in the original source.  The conversion program does not change the preceding indent for the opening `"""`. The body of the text block then follows the indent of the `"""`. The main change has already been pushed,

Re: RFR: JDK-8242532 convert tests to use Text Blocks

2020-05-08 Thread Kumar Srinivasan
Hi Jon, I generally like this…:) I noticed a strange indent at line #70 http://cr.openjdk.java.net/~jjg/8242532/webrev.01/test/langtools/jdk/javadoc/doclet/constantValues/TestConstantValuesDriver.java.frames.html I did not check every file and diff it is too laborious. Thanks Kumar On May 5

Re: RFR: JDK-8242532 convert tests to use Text Blocks

2020-05-05 Thread Jonathan Gibbons
Thanks for the +1, but I will do one more pass to tweak the parameters for very long lines and for short lines. -- Jon On 5/5/20 9:12 AM, Hannes Wallnoefer wrote: Yes, I noted that text blocks are not that great with string concatenation. I agree with all you say, as I said, these are all que

Re: RFR: JDK-8242532 convert tests to use Text Blocks

2020-05-05 Thread Hannes Wallnoefer
Yes, I noted that text blocks are not that great with string concatenation. I agree with all you say, as I said, these are all questions of taste and it’s easy to get lost in them. I also think you spent a good amount of time tweaking the parameters already, and the result looks very good. So

Re: RFR: JDK-8242532 convert tests to use Text Blocks

2020-05-05 Thread Jonathan Gibbons
Hannes, Thanks for the feedback. It is easy enough to change the threshhold for wrapping very long lines.  I'll look at the other cases you mention, but the more we get into style issues like "convert all or convert none", the harder it will be to come up with rules for the converter. At some

Re: RFR: JDK-8242532 convert tests to use Text Blocks

2020-05-05 Thread Hannes Wallnoefer
Hi Jon, I find that using text blocks increase readability greatly, and the patch looks mostly very good to me. There are a few cases where I am not quite sure about the criteria used to decide whether or not to use text blocks. Nothing too bad but I think these are worth discussing: TestCons