Re: latest changes in java.lang.Class

2018-12-30 Thread Scott Palmer
The string concatenation nested in the append argument is also strange. Won’t javac make an new StringBuilder to handle that? And single character appends should be done with chars ‘.’ not strings “.” Scott > On Dec 30, 2018, at 7:16 AM, Andrew Luo > wrote: > > Stream.of should not be used w

RE: latest changes in java.lang.Class

2018-12-30 Thread Andrew Luo
Stream.of should not be used with null. https://docs.oracle.com/javase/9/docs/api/java/util/stream/Stream.html#of-T- I think you'd be right if it were Stream.ofNullable, and there does appear to be a bug in that code (never appended to sb) - thanks for pointing that out... Thanks, -Andrew ---