mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

coulbeck
02.12.2006 db03e145fc8b186a2c012551e1d2b010c8ea0686
Trivial changes to fix warnings.
1 files modified
27 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/ImportJob.java 27 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/ImportJob.java
@@ -484,6 +484,9 @@
   * Record the entry count for each base DN when all entries have been
   * processed.
   *
   * @return true if is more data to be read from the LDIF file (the import
   * pass size was reached), false if the entire LDIF file has been read.
   *
   * @throws JebException If an error occurs in the JE backend.
   * @throws DatabaseException If an error occurs in the JE database.
   * @throws  IOException  If a problem occurs while opening the LDIF file for
@@ -570,14 +573,12 @@
              assert debugException(CLASS_NAME, "processLDIF", e);
              // Update stats.
              rejectedCount++;
              continue;
            }
            catch (DirectoryException e)
            {
              assert debugException(CLASS_NAME, "processLDIF", e);
              // Update stats.
              rejectedCount++;
              continue;
            }
          } while (true);
@@ -589,7 +590,10 @@
              try
              {
                Thread.sleep(100);
              } catch (Exception e) {}
              } catch (Exception e)
              {
                // No action needed.
              }
            }
          }
@@ -808,7 +812,10 @@
      {
        t.join();
      }
      catch (InterruptedException ie) {}
      catch (InterruptedException ie)
      {
        // No action needed?
      }
    }
  }
@@ -832,8 +839,7 @@
   */
  private int getRejectedCount()
  {
    int count = rejectedCount;
    return count;
    return rejectedCount;
  }
  /**
@@ -875,7 +881,7 @@
    {
      // The entry should not have been given to this backend.
      String message = getMessage(JebMessages.MSGID_JEB_INCORRECT_ROUTING,
                                  dn.toString());
                                  String.valueOf(dn));
      throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, message,
                                   JebMessages.MSGID_JEB_INCORRECT_ROUTING);
    }
@@ -968,12 +974,15 @@
        prevEnvStats = envStats;
      }
      catch (DatabaseException e) {}
      catch (DatabaseException e)
      {
        // Unlikely to happen and not critical.
      }
      previousCount = latestCount;
      previousTime = latestTime;
    }
  };
  }
}