TSK-1611: updated checkstyle to 8.41.1

This commit is contained in:
Mustapha Zorgati 2021-03-30 16:21:35 +02:00
parent b42781c00e
commit 1fe5aa7e72
4 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
package pro.taskana.common.api.exceptions; package pro.taskana.common.api.exceptions;
/** common base class for Taskana's checked exceptions. */ /** common base class for TASKANA's checked exceptions. */
public class TaskanaException extends Exception { public class TaskanaException extends Exception {
public TaskanaException() { public TaskanaException() {

View File

@ -27,6 +27,7 @@ public class ObjectAttributeChangeDetector {
* @param newObject the new object for the comparison * @param newObject the new object for the comparison
* @param <T> The generic type parameter * @param <T> The generic type parameter
* @return the details of all changed fields as JSON string * @return the details of all changed fields as JSON string
* @throws SystemException when any parameter is null
*/ */
public static <T> String determineChangesInAttributes(T oldObject, T newObject) { public static <T> String determineChangesInAttributes(T oldObject, T newObject) {
LOGGER.debug( LOGGER.debug(
@ -37,7 +38,6 @@ public class ObjectAttributeChangeDetector {
List<Field> fields = new ArrayList<>(); List<Field> fields = new ArrayList<>();
if (Objects.isNull(oldObject) || Objects.isNull(newObject)) { if (Objects.isNull(oldObject) || Objects.isNull(newObject)) {
throw new SystemException( throw new SystemException(
"Null was provided as a parameter. Please provide two objects of the same type"); "Null was provided as a parameter. Please provide two objects of the same type");
} }

View File

@ -257,6 +257,7 @@ public class TaskanaEngineImpl implements TaskanaEngine {
* sets the databaseId attribute. * sets the databaseId attribute.
* *
* @return a {@link SqlSessionFactory} * @return a {@link SqlSessionFactory}
* @throws SystemException when a connection to the database could not be opened.
*/ */
protected SqlSessionManager createSqlSessionManager() { protected SqlSessionManager createSqlSessionManager() {
Environment environment = Environment environment =

View File

@ -31,7 +31,7 @@
<version.json>20210307</version.json> <version.json>20210307</version.json>
<!-- build dependencies --> <!-- build dependencies -->
<version.checkstyle>8.41</version.checkstyle> <version.checkstyle>8.41.1</version.checkstyle>
<version.maven.checkstyle>3.1.2</version.maven.checkstyle> <version.maven.checkstyle>3.1.2</version.maven.checkstyle>
<version.maven.jar>3.2.0</version.maven.jar> <version.maven.jar>3.2.0</version.maven.jar>
<version.maven.compiler>3.8.1</version.maven.compiler> <version.maven.compiler>3.8.1</version.maven.compiler>