diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java index 7557a5a6dc2..254037f0556 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/Database.java @@ -22,13 +22,13 @@ import java.nio.channels.ClosedByInterruptException; import java.nio.channels.ClosedChannelException; import java.nio.channels.FileChannel; import java.util.ArrayList; -import java.util.Iterator; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; + /** * Database encapsulates access to a flat binary format file with a memory-manager-like API for * obtaining and releasing areas of storage (memory). @@ -100,7 +100,7 @@ public class Database { * @param location the local file path for the database * @param cache the cache to be used optimization * @param version the version number to store in the database (only applicable for new databases) - * @param permanentReadOnly whether this Database object will ever need writing to + * @param openReadOnly whether this Database object will ever need writing to * @throws CoreException */ public Database(File location, ChunkCache cache, int version, boolean openReadOnly) throws CoreException { @@ -247,9 +247,6 @@ public class Database { /** * Allocate a block out of the database. - * - * @param size - * @return */ public int malloc(final int datasize) throws CoreException { assert fExclusiveLock; @@ -468,7 +465,6 @@ public class Database { * Closes the database. *
* The behavior of any further calls to the Database is undefined
- * @throws IOException
* @throws CoreException
*/
public void close() throws CoreException {
@@ -605,8 +601,7 @@ public class Database {
}
if (!dirtyChunks.isEmpty()) {
markFileIncomplete();
- for (Iterator