Fix a resource leak warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Suppress some 'unused' warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Fix a resource leak warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Enable switch missing default warning and fix the resulting warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Enable redundant null check warning and fix resulting warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Remove trailing whitespace and add missing @Override on save

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>