(ClassInstance cls)
| 402 | } |
| 403 | |
| 404 | public void unmatch(ClassInstance cls) { |
| 405 | if (cls == null) throw new NullPointerException("null class"); |
| 406 | if (cls.getMatch() == null) return; |
| 407 | |
| 408 | LOGGER.debug("Unmatching class {} (was {}){}", cls, cls.getMatch(), (cls.hasMappedName() ? " ("+cls.getName(NameType.MAPPED_PLAIN)+")" : "")); |
| 409 | |
| 410 | cls.getMatch().setMatch(null); |
| 411 | cls.setMatch(null); |
| 412 | |
| 413 | unmatchMembers(cls); |
| 414 | |
| 415 | if (cls.isArray()) { |
| 416 | unmatch(cls.getElementClass()); |
| 417 | } else { |
| 418 | for (ClassInstance array : cls.getArrays()) { |
| 419 | unmatch(array); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | env.getCache().clear(); |
| 424 | } |
| 425 | |
| 426 | public void unmatch(MemberInstance<?> m) { |
| 427 | if (m == null) throw new NullPointerException("null member"); |
no test coverage detected