Skip to content

Commit 85dafb9

Browse files
committed
...
1 parent 74e67ce commit 85dafb9

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969
<version>1.6.5</version>
7070
<scope>test</scope>
7171
</dependency>
72+
<dependency>
73+
<groupId>org.assertj</groupId>
74+
<artifactId>assertj-core</artifactId>
75+
<version>3.8.0</version>
76+
<scope>test</scope>
77+
</dependency>
78+
7279
<!-- For testing TestNoClassDefFoundDeserializer -->
7380
<dependency>
7481
<groupId>javax.measure</groupId>

src/main/java/com/fasterxml/jackson/databind/introspect/AnnotatedWithParams.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.fasterxml.jackson.databind.introspect;
22

33
import java.lang.annotation.Annotation;
4+
import java.lang.reflect.Modifier;
45
import java.lang.reflect.Parameter;
56

67
import com.fasterxml.jackson.databind.JavaType;
@@ -85,16 +86,21 @@ public final AnnotatedParameter getParameter(int index) {
8586
}
8687

8788
public abstract int getParameterCount();
88-
8989
public abstract Class<?> getRawParameterType(int index);
90-
9190
public abstract JavaType getParameterType(int index);
9291

9392
/**
9493
* @since 3.0
9594
*/
9695
public abstract Parameter[] getNativeParameters();
9796

97+
/**
98+
* @since 3.0
99+
*/
100+
public boolean isStatic() {
101+
return Modifier.isStatic(getModifiers());
102+
}
103+
98104
public final int getAnnotationCount() { return _annotations.size(); }
99105

100106
/**

0 commit comments

Comments
 (0)