/** * Package-protected access to clear registered synchronizations. */ void clearSynchronizations() { if ( synchronizations != null ) { synchronizations.clear(); synchronizations = null; } } }
@Override public void clear() { delegate.clear(); }
public void clearErrors() { errorList.clear(); }
protected void clear() { children.clear(); }
@Override public void clear() { super.clear(); types.clear(); }
public void clear() { for (int i = 0; i <= maxFrequency; i++) { frequencyList[i].clear(); } cache.clear(); lowestFrequency = 0; }
/** * Remove all registered custom date formats => use only the defaults date formats to parse string as date. * <p> * Beware that the default formats are expressed in the current local timezone. * <p> * Defaults date format (expressed in the local time zone) are : * <ul> * <li><code>yyyy-MM-dd'T'HH:mm:ss.SSS</code></li> * <li><code>yyyy-MM-dd HH:mm:ss.SSS</code></li> * <li><code>yyyy-MM-dd'T'HH:mm:ss</code></li> * <li><code>yyyy-MM-dd</code></li> * </ul> * <p> * Example of valid string date representations: * <ul> * <li><code>2003-04-26T03:01:02.999</code></li> * <li><code>2003-04-26 03:01:02.999</code></li> * <li><code>2003-04-26T13:01:02</code></li> * <li><code>2003-04-26</code></li> * </ul> */ public static void useDefaultDateFormatsOnly() { userDateFormats.get().clear(); }
private void resolveWaitingFutures() { LinkedHashSet<CustomSettableFuture> waitingFuturesCopy = new LinkedHashSet<>(); synchronized (waitingFutures) { waitingFuturesCopy.addAll(waitingFutures); waitingFutures.clear(); } for (CustomSettableFuture future : waitingFuturesCopy) { future.resolve(); } }
@Override public void clearSynchronizations() { log.debug( "Clearing local Synchronizations" ); if ( synchronizations != null ) { synchronizations.clear(); } } }
public void setPatterns(final Set<String> newPatterns) { if (newPatterns != null) { if (this.patterns == null) { this.patternStrs = new LinkedHashSet<String>(DEFAULT_PATTERN_SET_SIZE); this.patterns = new LinkedHashSet<Pattern>(DEFAULT_PATTERN_SET_SIZE); } else { this.patternStrs.clear(); this.patterns.clear(); } this.patternStrs.addAll(newPatterns); for (final String pattern : newPatterns) { this.patterns.add(PatternUtils.strPatternToPattern(pattern)); } } else if (this.patterns != null) { this.patternStrs.clear(); this.patterns.clear(); } }
/** * Remove all registered custom date formats => use only the defaults date formats to parse string as date. * <p> * Beware that the default formats are expressed in the current local timezone. * <p> * Defaults date format (expressed in the local time zone) are : * <ul> * <li><code>yyyy-MM-dd'T'HH:mm:ss.SSS</code></li> * <li><code>yyyy-MM-dd HH:mm:ss.SSS</code></li> * <li><code>yyyy-MM-dd'T'HH:mm:ss</code></li> * <li><code>yyyy-MM-dd</code></li> * </ul> * <p> * Example of valid string date representations: * <ul> * <li><code>2003-04-26T03:01:02.999</code></li> * <li><code>2003-04-26 03:01:02.999</code></li> * <li><code>2003-04-26T13:01:02</code></li> * <li><code>2003-04-26</code></li> * </ul> */ public static void useDefaultDateFormatsOnly() { userDateFormats.get().clear(); }
public void clear() { this.set.clear(); this.stats.clear(); }
while (!pushBackInjection.isEmpty() & maxTryPerCycle-- > 0) { Iterator<Object> t = new LinkedList(pushBackInjection).iterator(); pushBackInjection.clear(); while (t.hasNext()) { instance = t.next();
@Override public void release() { if ( getStatements() != null && !getStatements().isEmpty() ) { LOG.batchContainedStatementsOnRelease(); } releaseStatements(); observers.clear(); } }
result.clear(); result.addAll(mappedElements);
if (d.priority >= Priorities.LOW_PRIORITY) { reportBug(bug, d); d.allSource.clear();
public static Props resolveProps(final Props props) { if (props == null) { return null; } final Props resolvedProps = new Props(); final LinkedHashSet<String> visitedVariables = new LinkedHashSet<>(); for (final String key : props.getKeySet()) { String value = props.get(key); if (value == null) { logger.warn("Null value in props for key '" + key + "'. Replacing with empty string."); value = ""; } visitedVariables.add(key); final String replacedValue = resolveVariableReplacement(value, props, visitedVariables); visitedVariables.clear(); resolvedProps.put(key, replacedValue); } for (final String key : resolvedProps.getKeySet()) { final String value = resolvedProps.get(key); final String expressedValue = resolveVariableExpression(value); resolvedProps.put(key, expressedValue); } return resolvedProps; }