Hello everyone!
When File.createTempFile() is called, a random long value is generated,
which is then made positive with Math.abs() and then used as a part of
the directory name.
Instead of using Math.abs() and Long.toString(), it would be better to
use Long.toUnsignedString():
1) no need t
Hello!
Suppose an annotation is of form
@interface MyAnnotation {
long value();
}
Create the annotation object with
sun.reflect.annotation.AnnotationParser.annotationForMap(MyAnnotation.class,
Map.of("value", some_value)).
Annotation.toString() method, called for the object,
Here's my try on going async.
On my tests on my local windows 10 machine (I don't have access to the
linux one without a VM ATM) , now with 1GB file, I noticed:
~2s of speed improvement from BufferedInputStream to
BufferedNonBlockStream when BufferedNonBlockStream is at its most
advantageous