/** Cleanup the references */ @Override public AbstractLookup.ReferenceToResult cleanUpResult(Lookup.Template<?> templ) { long now = System.currentTimeMillis(); AbstractLookup.ReferenceIterator it = new AbstractLookup.ReferenceIterator(this.results); int cnt = 0; while (it.next()) { cnt++; } long took = System.currentTimeMillis() - now; if (took > 500) { AbstractLookup.LOG.log(Level.WARNING, "Too long ({0} ms and {1} references) cleanUpResult for {2}", new Object[]{took, cnt, templ.getType()} ); } return this.results = it.first(); }
this.results = it.first(); this.content = changed.newContent(this.content);
this.results = it.first (); this.content = changed.newContent ();
this.results = it.first(); this.content = changed.newContent(this.content);
this.results = it.first (); this.content = changed.newContent ();
this.results = it.first(); this.content = changed.newContent(this.content);
/** Cleanup the references */ public AbstractLookup.ReferenceToResult cleanUpResult(Lookup.Template<?> templ) { AbstractLookup.ReferenceIterator it = new AbstractLookup.ReferenceIterator(this.results); while (it.next()) { // empty } return this.results = it.first(); }
/** Cleanup the references */ public AbstractLookup.ReferenceToResult cleanUpResult(Lookup.Template templ) { AbstractLookup.ReferenceIterator it = new AbstractLookup.ReferenceIterator (this.results); while (it.next()); return this.results = it.first (); }
/** Cleanup the references */ public AbstractLookup.ReferenceToResult cleanUpResult(Lookup.Template templ) { AbstractLookup.ReferenceIterator it = new AbstractLookup.ReferenceIterator (this.results); while (it.next()); return this.results = it.first (); }
/** Cleanup the references */ public AbstractLookup.ReferenceToResult cleanUpResult(Lookup.Template<?> templ) { AbstractLookup.ReferenceIterator it = new AbstractLookup.ReferenceIterator(this.results); while (it.next()) { // empty } return this.results = it.first(); }