Introduction to PMD 1. Overview Simply put, PMD is a source code analyzer to find common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex, PLSQL, Apache Velocity, XML, XSL. In this article, we’ll focus on how to use… Continue Reading pmd

Configuring a Tomcat Connection Pool in Spring Boot 1. Overview Spring Boot is an opinionated – yet powerful – layer of abstraction placed on top of a plain Spring platform, which makes developing stand-alone and web applications a no-brainer. Spring Boot provides a few handy “starter” dependencies, aimed at running… Continue Reading spring-boot-tomcat-connection-pool

Cannot Reference “X” Before Supertype Constructor Has Been Called Java 1. Overview In this short tutorial, we’ll show how we can get the error Cannot reference “X” before supertype constructor has been called, and how to avoid it. 2. Constructors Chain A constructor can call exactly one other constructor. This… Continue Reading java-cannot-reference-x-before-supertype-constructor-error

New Stream Collectors in Java 9 1. Overview Collectors were added in Java 8 which helped accumulate input elements into mutable containers such as Map, List, and Set. In this article, we’re going to explore two new collectors added in Java 9: Collectors.filtering and Collectors.flatMapping used in combination with Collectors.groupingBy… Continue Reading java9-stream-collectors