This rule checks that proper date types are used. The use of the java.util.Date, java.util.Calendar, java.sql.Date and java.sql.Timestamp is discouraged. Instead use the java.time.LocalDate[Time], java.time.ZonedDateTime, java.time.OffsetDateTime or java.time.Instant.
package com.devonfw.ide.sonarqube.dataaccess.impl;
import java.util.Date;
import java.util.Calendar;
import java.sql.Date;
java.sql.Timestamp;
public class MyClass {}
package com.devonfw.ide.sonarqube.dataaccess.impl;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.OffsetDateTime;
import java.time.Instant;
public class MyClass {}