|
Fix null safety bugs, typo in public API, and add missing tests
- isPrimitive(Class<?>): add null check (was NPE) - isEnum(Type): add isParameterized guard (was ClassCastException on ParameterizedType) - isEnum(Class<?>): add null check (was NPE) - isBoxed(Class<?>): add null check and guard getPackage() null (was NPE) - hasNoArgsContrustor: rename to hasNoArgsConstructor (public API typo); add null and isParameterized guard to the Type overload (was ClassCastException/NPE) - Add missing unit tests for isEnum, isBoxed(null), isPrimitive(null), and the new hasNoArgsConstructor null/parameterized cases (143 tests, all passing) - README: fix getParameterizedType example, add isEnum and isBoxed sections, remove incorrectly documented private isEqual method, fix method name typo Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
|---|
|
|
| README.md |
|---|
| src/main/java/io/ljunggren/reflectionUtils/ReflectionUtils.java |
|---|
| src/test/java/io/ljunggren/reflectionUtils/ReflectionUtilsTest.java |
|---|