From f0235bae942d9f766de4edba0c4b04432cddff20 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Wed, 12 Aug 2020 10:01:00 -0400 Subject: [PATCH] Bug 565628: Fix typo in variable name Change-Id: I62a470e6ebe3b3e8369aad5861bab7dc1d5dd6f4 --- .../model/xml/XmlProjectDescriptionStorage.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 d8985101296..a6df97cb85a 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 @@ -176,7 +176,7 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto // end Bug 249951 & Bug 310007 serializingLock.acquire(); LanguageSettingsProvidersSerializer.serializeLanguageSettings(fDes); - projectModificaitonStamp = serialize(fDes.getProject(), + projectModificationStamp = serialize(fDes.getProject(), ICProjectDescriptionStorageType.STORAGE_FILE_NAME, fElement); ((ContributedEnvironment) CCorePlugin.getDefault().getBuildEnvironmentManager() .getContributedEnvironment()).serialize(fDes); @@ -192,7 +192,7 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto * Volatile provides a memory barrier in Java 5+ */ private volatile Reference fProjectDescription = new SoftReference<>(null); /** The last modification stamp of the .cproject project description file */ - private volatile long projectModificaitonStamp = IResource.NULL_STAMP; + private volatile long projectModificationStamp = IResource.NULL_STAMP; /** A lock that is held during project description serialization * This lock is also head during load to prevent a load overlapping @@ -305,9 +305,9 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto // If loaded, and we have cached the modification stamp, reload long currentModificationStamp = getModificationStamp( project.getFile(ICProjectDescriptionStorageType.STORAGE_FILE_NAME)); - if (projectModificaitonStamp != currentModificationStamp) { + if (projectModificationStamp != currentModificationStamp) { setCurrentDescription(null, true); - projectModificaitonStamp = currentModificationStamp; + projectModificationStamp = currentModificationStamp; return true; } return false; @@ -499,7 +499,7 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto ICProjectDescriptionStorageType.STORAGE_FILE_NAME, true, false, false); try { // Update the modification stamp - projectModificaitonStamp = getModificationStamp( + projectModificationStamp = getModificationStamp( project.getFile(ICProjectDescriptionStorageType.STORAGE_FILE_NAME)); CProjectDescription des = new CProjectDescription(project, new XmlStorage(storage), storage, true, false);