diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java')
-rw-r--r-- | core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java index a90b2951fd5..de82650c681 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java @@ -190,7 +190,7 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto /** A soft reference to the read-only project description * Volatile provides a memory barrier in Java 5+ */ - private volatile Reference<ICProjectDescription> fProjectDescription = new SoftReference<ICProjectDescription>( + private volatile Reference<ICProjectDescription> fProjectDescription = new SoftReference<>( null); /** The last modification stamp of the .cproject project description file */ private volatile long projectModificaitonStamp = IResource.NULL_STAMP; @@ -379,14 +379,14 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto ICProjectDescription oldDes = fProjectDescription.get(); if (des != null) { if (project.exists() && project.isOpen()) { - fProjectDescription = new SoftReference<ICProjectDescription>(des); + fProjectDescription = new SoftReference<>(des); } else { IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, SettingsModelMessages.getString("CProjectDescriptionManager.16"), null); //$NON-NLS-1$ CCorePlugin.log(new CoreException(status)); } } else { - fProjectDescription = new SoftReference<ICProjectDescription>(null); + fProjectDescription = new SoftReference<>(null); } LanguageSettingsProvidersSerializer.reRegisterListeners(oldDes, fProjectDescription.get()); |