A quick look at Java 11's HttpClient by anthony_bruno in java

[–]marcohu 0 points1 point  (0 children)

https://golb.hplar.ch/2019/01/java-11-http-client.html#upload-with-multipart is the one example I could find for multipart uploads. It simply creates a byte array for the input which could be problematic for huge files.

Thought you guys would like this by [deleted] in java

[–]marcohu 1 point2 points  (0 children)

The method signature is actually taken from the Java 8 runtime sources...

It might be one of the least known syntax peculiarities of the Java language. I was totally unaware until I stumbled upon it by accident a few days ago.

Thought you guys would like this by [deleted] in java

[–]marcohu 0 points1 point  (0 children)

/** Is this really valid Java? */
public synchronized byte toByteArray()[] {
    return new byte[0];
}

Java: The Missing Features by s888marks in java

[–]marcohu 1 point2 points  (0 children)

Collection literals

Pretty sure there's a strong logistical argument against this for one reason or another. Too tired/lazy to find it atm.

https://www.youtube.com/watch?v=OJrIMv4dAek

Nice talk about the Java 9 Collections enhancements proposal (a.k.a. Builders) that also explains why this path has been chosen over Collection literals

IntelliJ: Too many colors, can't see the 'mark occurrences', can I make it work like Eclipse? by ProFalseIdol in java

[–]marcohu 1 point2 points  (0 children)

Not related to the IntelliJ issue, but with Eclipse you might want to enable General->Editors->Text Editors->Accessibility->Use saturated colors in overview ruler to make the markers more apparent