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

Ludovic Poitou
03.44.2012 78d5bb1b419c9120ff3f56fa7faa96552f7e2f3d
Fix minor issues and optimizations suggested by FindBugs and NetBeans.
1 files modified
3 ■■■■ changed files
opends/src/server/org/opends/server/tools/DBTest.java 3 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/DBTest.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2012 ForgeRock AS
 */
package org.opends.server.tools;
@@ -1050,7 +1051,7 @@
                // Seems like entry limit has not been exceeded and the bytes
                // is a list of entry IDs.
                double percentFull =
                    (bytes.length / 8) / index.getIndexEntryLimit();
                    (bytes.length / (double)8) / index.getIndexEntryLimit();
                if(percentFull >= .8)
                {
                  if(percentFull < .9)