diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMProxy.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMProxy.java index 3bf6cc209a5..b2c4bc65d25 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMProxy.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMProxy.java @@ -51,9 +51,9 @@ public class PDOMProxy implements IPDOM { } } public synchronized void acquireReadLock() throws InterruptedException { - if (fDelegate != null) + if (fDelegate != null) { fDelegate.acquireReadLock(); - else { + } else { fReadLockCount++; if (PDOM.sDEBUG_LOCKS) { PDOM.incReadLock(fLockDebugging); @@ -201,9 +201,9 @@ public class PDOMProxy implements IPDOM { } public synchronized void addListener(IListener listener) { - if (fDelegate != null) + if (fDelegate != null) { fDelegate.addListener(listener); - else { + } else { fListeners.add(listener); } } @@ -216,9 +216,9 @@ public class PDOMProxy implements IPDOM { } public synchronized void removeListener(IListener listener) { - if (fDelegate != null) + if (fDelegate != null) { fDelegate.removeListener(listener); - else { + } else { fListeners.remove(listener); } } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMWriter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMWriter.java index f8f94226af1..73bfe577774 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMWriter.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMWriter.java @@ -170,8 +170,7 @@ abstract public class PDOMWriter { String path= null; if (ifls.length > 0) { path= ifls[ifls.length-1].getURI().getPath(); - } - else { + } else { path= ast.getFilePath().toString(); } String msg= NLS.bind(Messages.PDOMWriter_errorWhileParsing, path); @@ -501,7 +500,7 @@ abstract public class PDOMWriter { * Updates current progress information with the provided delta. */ protected final void updateFileCount(int sources, int primaryHeader, int header) { - synchronized(fInfo) { + synchronized (fInfo) { fInfo.fCompletedSources += sources; fInfo.fPrimaryHeaderCount += primaryHeader; fInfo.fCompletedHeaders += header; @@ -512,7 +511,7 @@ abstract public class PDOMWriter { * Updates current progress information with the provided delta. */ protected final void updateRequestedFiles(int delta) { - synchronized(fInfo) { + synchronized (fInfo) { fInfo.fRequestedFilesCount+= delta; } }