From b842e9c0c86dabb9dfbbd9704ce2e1e5b1cdec45 Mon Sep 17 00:00:00 2001 From: Shadi Shaheen Date: Sun, 10 Sep 2017 23:01:06 +0300 Subject: [PATCH] update checkstyle dependency --- config/checkstyle/checkstyle.xml | 265 +++--------------- gradle/checkstyle.gradle | 4 +- .../com/jfoenix/controls/JFXNodesList.java | 9 +- .../jfoenix/controls/JFXTreeTableView.java | 2 +- 4 files changed, 45 insertions(+), 235 deletions(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index a896c878..487c927c 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -1,7 +1,7 @@ + "-//Puppy Crawl//DTD Check Configuration 1.3//EN" + "http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> - + - + @@ -31,9 +31,8 @@ - - + + @@ -44,23 +43,23 @@ + + - + - + @@ -92,6 +91,23 @@ + + + + + + + + + + + + + + + + + - - - - - - - - - + - - + @@ -174,15 +180,19 @@ + - + + + + + - + @@ -196,8 +206,7 @@ - + @@ -209,10 +218,9 @@ - + - @@ -226,202 +234,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gradle/checkstyle.gradle b/gradle/checkstyle.gradle index 3c7a2d11..384426e9 100644 --- a/gradle/checkstyle.gradle +++ b/gradle/checkstyle.gradle @@ -1,7 +1,7 @@ apply plugin: 'checkstyle' checkstyle { - toolVersion = '7.6.1' + toolVersion = '8.2' configFile = rootProject.file('config/checkstyle/checkstyle.xml') showViolations = false ignoreFailures = true @@ -18,5 +18,5 @@ checkstyleTest.enabled = false dependencies { checkstyle "com.puppycrawl.tools:checkstyle:$checkstyle.toolVersion" - checkstyle 'com.github.sevntu.checkstyle:sevntu-checks:1.23.1' + checkstyle 'com.github.sevntu-checkstyle:sevntu-checks:1.24.2' } diff --git a/jfoenix/src/main/java/com/jfoenix/controls/JFXNodesList.java b/jfoenix/src/main/java/com/jfoenix/controls/JFXNodesList.java index 88c995fb..d3ecd31c 100644 --- a/jfoenix/src/main/java/com/jfoenix/controls/JFXNodesList.java +++ b/jfoenix/src/main/java/com/jfoenix/controls/JFXNodesList.java @@ -24,7 +24,6 @@ import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.Timeline; -import javafx.geometry.Bounds; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.layout.Region; @@ -85,8 +84,6 @@ public void addAnimatedNode(Region node, Callback> // init node property node.setVisible(false); -// node.minWidthProperty().bind(node.prefWidthProperty()); -// node.minHeightProperty().bind(node.prefHeightProperty()); if (this.getChildren().size() > 0) { initNode(node); } else { @@ -114,15 +111,17 @@ public void addAnimatedNode(Region node, Callback> @Override protected double computePrefWidth(double height) { - if(!getChildren().isEmpty()) + if (!getChildren().isEmpty()) { return getChildren().get(0).prefWidth(height); + } return super.computePrefWidth(height); } @Override protected double computePrefHeight(double width) { - if(!getChildren().isEmpty()) + if (!getChildren().isEmpty()) { return getChildren().get(0).prefHeight(width); + } return super.computePrefHeight(width); } diff --git a/jfoenix/src/main/java/com/jfoenix/controls/JFXTreeTableView.java b/jfoenix/src/main/java/com/jfoenix/controls/JFXTreeTableView.java index a4a33db1..acf0dd5b 100644 --- a/jfoenix/src/main/java/com/jfoenix/controls/JFXTreeTableView.java +++ b/jfoenix/src/main/java/com/jfoenix/controls/JFXTreeTableView.java @@ -173,7 +173,7 @@ public void sort() { } // lock is used to force mutual exclusion while group/ungroup operation - Lock lock = new ReentrantLock(true); + private final Lock lock = new ReentrantLock(true); /** * this is a blocking method so it should not be called from the ui thread,