/** * <p> * Returns a <code>ThrowableSet</code> representing the set of exceptions included in <code>include</code> minus the set * of exceptions included in <code>exclude</code>. Creates a new <code>ThrowableSet</code> only if there was not already * one whose contents correspond to <code>include</code> - <code>exclude</code>. * </p> * * @param include * A set of {@link RefLikeType} objects representing exception types included in the result; may be * <code>null</code> if there are no included types. * * @param exclude * A set of {@link AnySubType} objects representing exception types excluded from the result; may be * <code>null</code> if there are no excluded types. * * @return a <code>ThrowableSet</code> representing the set of exceptions corresponding to <code>include</code> - * <code>exclude</code>. */ private ThrowableSet registerSetIfNew(Set<RefLikeType> include, Set<AnySubType> exclude) { if (INSTRUMENTING) { registrationCalls++; } ThrowableSet result = new ThrowableSet(include, exclude); ThrowableSet ref = registry.get(result); if (null != ref) { return ref; } registry.put(result, result); return result; }
registeredSets++; ThrowableSet result = new ThrowableSet(include, exclude); sizeList.add(result); return result;
registeredSets++; ThrowableSet result = new ThrowableSet(include, exclude); sizeList.add(result); return result;