13
13
import org .mockito .junit .MockitoRule ;
14
14
import org .mockito .quality .Strictness ;
15
15
16
- import javax . annotation . Nonnull ;
16
+ import edu . umd . cs . findbugs . annotations . NonNull ;
17
17
import java .time .Duration ;
18
18
19
19
import static org .junit .Assert .assertFalse ;
@@ -80,7 +80,7 @@ private static class TestOp extends BuildTimeOutOperation {
80
80
boolean performed = false ;
81
81
82
82
@ Override
83
- public boolean perform (@ Nonnull AbstractBuild <?, ?> build , @ Nonnull BuildListener listener , long effectiveTimeout ) {
83
+ public boolean perform (@ NonNull AbstractBuild <?, ?> build , @ NonNull BuildListener listener , long effectiveTimeout ) {
84
84
performed = true ;
85
85
return true ;
86
86
}
@@ -90,7 +90,7 @@ private static class FailsOp extends BuildTimeOutOperation {
90
90
boolean performed = false ;
91
91
92
92
@ Override
93
- public boolean perform (@ Nonnull AbstractBuild <?, ?> build , @ Nonnull BuildListener listener , long effectiveTimeout ) {
93
+ public boolean perform (@ NonNull AbstractBuild <?, ?> build , @ NonNull BuildListener listener , long effectiveTimeout ) {
94
94
performed = true ;
95
95
return false ;
96
96
}
@@ -100,7 +100,7 @@ private static class ThrowsOp extends BuildTimeOutOperation {
100
100
boolean performed = false ;
101
101
102
102
@ Override
103
- public boolean perform (@ Nonnull AbstractBuild <?, ?> build , @ Nonnull BuildListener listener , long effectiveTimeout ) {
103
+ public boolean perform (@ NonNull AbstractBuild <?, ?> build , @ NonNull BuildListener listener , long effectiveTimeout ) {
104
104
performed = true ;
105
105
throw new RuntimeException ("bad" );
106
106
}
0 commit comments