isRuntime()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
eloc 3
1
package io.github.ro4.annotation;
2
3
import org.springframework.aop.MethodMatcher;
4
5
import java.lang.reflect.Method;
6
7 1
public class CheckableMethodMatcher implements MethodMatcher {
8
9
    @Override
10
    public boolean matches(Method method, Class<?> targetClass) {
11 1
        return method.isAnnotationPresent(Checkable.class);
12
    }
13
14
    @Override
15
    public boolean isRuntime() {
16 1
        return false;
17
    }
18
19
    @Override
20
    public boolean matches(Method method, Class<?> targetClass, Object... args) {
21
        return matches(method, targetClass);
22
    }
23
}