Java
I/O
-
Path manipulation:
java.nio.file.Paths
Logging
-
Change loglevel in properties:
logging.level.<paketname>=<Loglevel>
Best practices
-
Never return
null
for Collection types, but return an empty Collection! The caller can do whatever he wanted to do with the collection without having to check for null and have any special case handling.
Static codeanalysis
-
My Checkstyle does not fail during the maven build though it should: add <violationSeverity>warning</violationSeverity>
Functional programming
-
nice functional framework to extend core Java8 functionalities: http://javaslang.io
Connections
-
Default timeout (both connect and read timeouts) are infinite. Change the system timeouts by using the following keys:
-
-Dsun.net.client.defaultConnectTimeout=TimeoutInMiliSec
and -
-Dsun.net.client.defaultReadTimeout=TimeoutInMiliSec
-