From 0b7f4acca342bb25ea2c06950b459e4fe2b3fba2 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 18 Jan 2010 21:42:49 +0000 Subject: [PATCH] Cosmetics. --- .../eclipse/cdt/internal/core/pdom/WritablePDOM.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/WritablePDOM.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/WritablePDOM.java index 20a798c835d..9d8fc7199e8 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/WritablePDOM.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/WritablePDOM.java @@ -37,11 +37,13 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment { private boolean fCreatedFromScratch= false; private ASTFilePathResolver fPathResolver; - public WritablePDOM(File dbPath, IIndexLocationConverter locationConverter, Map linkageFactoryMappings) throws CoreException { + public WritablePDOM(File dbPath, IIndexLocationConverter locationConverter, + Map linkageFactoryMappings) throws CoreException { this(dbPath, locationConverter, ChunkCache.getSharedInstance(), linkageFactoryMappings); } - public WritablePDOM(File dbPath, IIndexLocationConverter locationConverter, ChunkCache cache, Map linkageFactoryMappings) throws CoreException { + public WritablePDOM(File dbPath, IIndexLocationConverter locationConverter, ChunkCache cache, Map linkageFactoryMappings) throws CoreException { super(dbPath, locationConverter, cache, linkageFactoryMappings); } @@ -74,7 +76,8 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment { fEvent.fFilesWritten.add(location); } - public void clearFile(IIndexFragmentFile file, Collection contextsRemoved) throws CoreException { + public void clearFile(IIndexFragmentFile file, Collection contextsRemoved) + throws CoreException { assert file.getIndexFragment() == this; ((PDOMFile) file).clear(contextsRemoved); @@ -98,7 +101,7 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment { public void setProperty(String propertyName, String value) throws CoreException { if (IIndexFragment.PROPERTY_FRAGMENT_FORMAT_ID.equals(propertyName) || IIndexFragment.PROPERTY_FRAGMENT_FORMAT_VERSION.equals(propertyName)) { - throw new IllegalArgumentException("Property "+value+" may not be written to"); //$NON-NLS-1$ //$NON-NLS-2$ + throw new IllegalArgumentException("Property " + value + " may not be written to"); //$NON-NLS-1$ //$NON-NLS-2$ } new DBProperties(db, PROPERTIES).setProperty(propertyName, value); }