Package java.util

Examples of java.util.TreeSet.clear()


      String item = (String) it.next();
      tmpSet.add(item.replace('/', '.'));
    }
    set.clear();
    set.addAll(tmpSet);
    tmpSet.clear();
  }

  /**
   * Replaces all '/' in class and package names with '.' in the
   * keys of the given map. If the value is a sorted set of strings
View Full Code Here


          msg.append("The following non-provided packages are present in the ")
            .append("Export-Package header: ")
            .append(tmp.toString())
            .append(". ");
        }
        tmp.clear();
        tmp.addAll(providedExportSet);
        tmp.removeAll(manifestExportSet);
        if (0<tmp.size()) {
          if (0<msg.length()) {
            msg.append("\n");
View Full Code Here

          msg.append("The following packages are missing from ")
            .append("the given Export-Package header: ")
            .append(tmp.toString())
            .append(".");
        }
        tmp.clear();
        if (failOnExports) {
          log(msg.toString(), Project.MSG_ERR);
          throw new BuildException(msg.toString(), getLocation());
        } else {
          log(msg.toString(), Project.MSG_WARN);
View Full Code Here

    searcher.search(query, c);
    Assert.assertEquals("Simple: " + query.toString(defaultFieldName),
                        correct, actual);

    for (int i = -1; i < 2; i++) {
      actual.clear();
      QueryUtils.wrapSearcher(searcher, i).search(query, c);
      Assert.assertEquals("Wrap Searcher " + i + ": " +
                          query.toString(defaultFieldName),
                          correct, actual);
    }
View Full Code Here

    }
                       
    if ( ! ( searcher instanceof IndexSearcher ) ) return;

    for (int i = -1; i < 2; i++) {
      actual.clear();
      QueryUtils.wrapUnderlyingReader
        ((IndexSearcher)searcher, i).search(query, c);
      Assert.assertEquals("Wrap Reader " + i + ": " +
                          query.toString(defaultFieldName),
                          correct, actual);
View Full Code Here

        {
            TreeSet ts = new TreeSet( comparator );

            o1 = sortAndGetFirst( at1, ts );

            ts.clear();
            o2 = sortAndGetFirst( at2, ts );
        }
        else
        {
            Value<?> v1 = at1.get();
View Full Code Here

      findUnlinkedDirs(rootDir, installer.getOptions(), result);
    }
    catch (ScanFailedException e) {
      System.out.println("Abort scan for unlinked installations because exception occurred");
      e.printStackTrace();
      result.clear();
    }
    StringBuffer buf = new StringBuffer(result.size() * 40);
    for (Iterator iter = result.iterator(); iter.hasNext();) {
      File installDir = (File) iter.next();
      if (buf.length() > 0)
View Full Code Here

            LOG.info("Could not obtain block from any node:  " + ie);
            try {
                Thread.sleep(10000);
            } catch (InterruptedException iex) {
            }
            deadNodes.clear();
            failures++;
            continue;
        }
        try {
            s = new Socket();
View Full Code Here

        LOG.info("Could not obtain block from any node:  " + ie);
        try {
          Thread.sleep(10000);
        catch (InterruptedException iex) {
        }
        deadNodes.clear();
        failures++;
        continue;
      }
      try {
        s = new Socket();
View Full Code Here

            LOG.info("Could not obtain block from any node:  " + ie);
            try {
                Thread.sleep(10000);
            } catch (InterruptedException iex) {
            }
            deadNodes.clear();
            failures++;
            continue;
        }
        try {
            s = new Socket();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.