|
|
|
|
|
by beagle3
4465 days ago
|
|
> it looks prettier IMHO ... And here's a fine example of Java culture. 2 lines do stuff, everything else is fluff, and it is considered prettier. BTW: I did not run this specific code, but dropping the buffer is likely to make this code take much, much more CPU (unless HotSpot is much better these days than it was in 2010 when I last used it). That's another pillar of Java culture - care not about performance. Disclaimer: I didn't test this, and any mention of performance requires testing, rather than reasoning. I don't have a Java compiler handy anymore, or I would test it. |
|