diff --git a/build.gradle b/build.gradle
index cde5092cb..5799cd6f5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,7 +14,6 @@ buildscript {
classpath 'net.researchgate:gradle-release:2.4.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
classpath 'org.shipkit:shipkit:2.3.5'
- classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.5.4'
}
}
@@ -35,7 +34,7 @@ ext{
servletVersion = "2.5"
jacocoVersion = "0.7.7.201606060606"
eclipseJdt = "3.3.0-v_771"
- checkstyleVersion= "7.6.1"
+ checkstyleVersion = "9.2.1"
systemRulesVersion="1.18.0"
}
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index 464bfbd53..01c09fa44 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -1,4 +1,4 @@
-
+
* The purpose of the deep cloner is to create a deep clone of an object. An
@@ -45,7 +46,7 @@
public class DeepCloner implements DeepClonerSPI {
private final ClassLoader targetCL;
- private final Map
* The purpose of the deep cloner is to create a deep clone of an object. An
@@ -27,39 +28,40 @@
public class DeepCloner implements DeepClonerSPI {
private final XStream xStream;
- /**
- * Clone using the supplied ClassLoader.
- * @param classLoader - the classloader to loaded cloned classes.
- */
- public DeepCloner(ClassLoader classLoader) {
+ /**
+ * Clone using the supplied ClassLoader.
+ * @param classLoader - the classloader to loaded cloned classes.
+ */
+ public DeepCloner(ClassLoader classLoader) {
xStream = new XStream();
- disableSecurity();
- xStream.omitField(SingleClassloaderExecutor.class, "classloader");
+ disableSecurity();
+ xStream.omitField(SingleClassloaderExecutor.class, "classloader");
xStream.setClassLoader(classLoader);
- }
+ }
- private void disableSecurity() {
- XStream.setupDefaultSecurity(xStream);
- xStream.allowTypesByRegExp(new String[]{".*"});
- }
+ private void disableSecurity() {
+ XStream.setupDefaultSecurity(xStream);
+ xStream.allowTypesByRegExp(new String[]{".*"});
+ }
- /**
- * Clone using the current ContextClassLoader.
- */
- public DeepCloner() {
- this(Thread.currentThread().getContextClassLoader());
- }
+ /**
+ * Clone using the current ContextClassLoader.
+ */
+ public DeepCloner() {
+ this(Thread.currentThread().getContextClassLoader());
+ }
- /**
- * Clones an object.
- *
+ /**
+ * Clones an object.
+ *
* @param objectToClone the object to clone.
- * @return A deep clone of the object to clone.
- */
- @SuppressWarnings("unchecked")
- public