Skip to content

Commit 1db8ce6

Browse files
committed
add deprecation markers
1 parent c381ff7 commit 1db8ce6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/fasterxml/jackson/databind/util/ClassUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,10 @@ public static boolean isNonStaticInnerClass(Class<?> cls) {
11041104

11051105
/**
11061106
* @since 2.7
1107+
*
1108+
* @deprecated Since 2.12 (just call methods directly or check class name)
11071109
*/
1110+
@Deprecated // since 2.12
11081111
public static String getPackageName(Class<?> cls) {
11091112
Package pkg = cls.getPackage();
11101113
return (pkg == null) ? null : pkg.getName();

0 commit comments

Comments
 (0)