From 954741dee872ed04b740f57170ffb00d0a1db93a Mon Sep 17 00:00:00 2001 From: Pawel Lipski Date: Fri, 4 Mar 2022 18:48:21 +0100 Subject: [PATCH] Bump 2022.1 EAP to 221.4906.8 --- build.gradle | 8 ++++---- .../com/virtuslab/archunit/ClassStructureTestSuite.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 8e021f57b..47c52c99e 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { id 'com.diffplug.spotless' version '6.3.0' apply false id 'io.freefair.lombok' version '6.4.1' apply false id 'org.ajoberstar.grgit' version '5.0.0' apply false - id 'org.checkerframework' version '0.6.8' apply false + id 'org.checkerframework' version '0.6.9' apply false id 'org.jetbrains.grammarkit' version '2021.2.1' apply false id 'org.jetbrains.intellij' version '1.4.0' apply false // Minor Kotlin version is effectively enforced by the IntelliJ version we're building against, @@ -23,9 +23,9 @@ ext { kotlinVersion = '1.5.10' scalaMajorVersion = '2.13' - archUnitVersion = '0.22.0' + archUnitVersion = '0.23.1' betterStringsVersion = '0.5' - checkerFrameworkVersion = '3.21.2' + checkerFrameworkVersion = '3.21.3' checkstyleToolVersion = '8.33' commonsIOVersion = '2.11.0' ideProbeVersion = '0.23.0' @@ -54,7 +54,7 @@ ext { // but for some reason aren't resolved in UI tests. // Generally, see https://www.jetbrains.com/intellij-repository/snapshots/ -> Ctrl+F .idea // Use `null` if the latest supported major has a stable release (and not just EAPs). - eapOfLatestSupportedMajor: '221.4501.155-EAP-SNAPSHOT' + eapOfLatestSupportedMajor: '221.4906.8-EAP-SNAPSHOT' ] intellijVersions.latestSupportedMajor = intellijVersions.eapOfLatestSupportedMajor diff --git a/src/test/java/com/virtuslab/archunit/ClassStructureTestSuite.java b/src/test/java/com/virtuslab/archunit/ClassStructureTestSuite.java index c800f7295..cd41a0bf5 100644 --- a/src/test/java/com/virtuslab/archunit/ClassStructureTestSuite.java +++ b/src/test/java/com/virtuslab/archunit/ClassStructureTestSuite.java @@ -45,7 +45,7 @@ public boolean apply(JavaMethodCall input) { AccessTarget.MethodCallTarget target = input.getTarget(); // where is the method declared? if (origin.getName().equals("onUpdate") && target.getName().equals("onUpdate")) { - return target.getOwner().equals(origin.getOwner().getSuperClass().orNull()); + return target.getOwner().equals(origin.getOwner().getSuperclass().orElse(null)); } return false; }