Skip to content

Commit 97015bb

Browse files
committed
update quality plugin
1 parent 3143d10 commit 97015bb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id 'signing'
66
id 'ru.vyarus.java-lib' version '2.4.0'
77
id 'ru.vyarus.github-info' version '1.5.0'
8-
id 'ru.vyarus.quality' version '4.9.0'
8+
id 'ru.vyarus.quality' version '5.0.0'
99
id 'net.researchgate.release' version '3.0.2'
1010
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
1111
id 'com.github.ben-manes.versions' version '0.51.0'
@@ -21,8 +21,6 @@ repositories { mavenLocal(); mavenCentral() }
2121
dependencies {
2222
implementation platform('org.junit:junit-bom:5.10.1')
2323

24-
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.8.3'
25-
2624
// direct dependency to prevent usage with older junit api
2725
implementation 'org.junit.jupiter:junit-jupiter-api'
2826

src/main/java/ru/vyarus/spock/jupiter/engine/context/DefaultParameterContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package ru.vyarus.spock.jupiter.engine.context;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34
import org.junit.jupiter.api.extension.ParameterContext;
45
import org.junit.platform.commons.util.AnnotationUtils;
56
import org.junit.platform.commons.util.Preconditions;
@@ -25,6 +26,7 @@ public class DefaultParameterContext implements ParameterContext {
2526
private final int index;
2627
private final Optional<Object> target;
2728

29+
@SuppressFBWarnings("CT_CONSTRUCTOR_THROW")
2830
public DefaultParameterContext(final Parameter parameter, final int index, final Optional<Object> target) {
2931
Preconditions.condition(index >= 0, "index must be greater than or equal to zero");
3032
this.parameter = Preconditions.notNull(parameter, "parameter must not be null");

src/main/java/ru/vyarus/spock/jupiter/interceptor/ExtensionLifecycleMerger.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package ru.vyarus.spock.jupiter.interceptor;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34
import org.junit.jupiter.api.extension.ParameterContext;
45
import org.junit.platform.commons.logging.Logger;
56
import org.junit.platform.commons.logging.LoggerFactory;
@@ -53,6 +54,7 @@ public class ExtensionLifecycleMerger extends AbstractMethodInterceptor {
5354
private final IMethodInterceptor fixtureMethodsInterceptor;
5455

5556

57+
@SuppressFBWarnings("CT_CONSTRUCTOR_THROW")
5658
public ExtensionLifecycleMerger(final ClassContext context) {
5759
this.context = context;
5860

0 commit comments

Comments
 (0)