Minor changes (typo, ...)
diff --git a/plugins/org.eclipse.app4mc.amalthea.converters.083/src/org/eclipse/app4mc/amalthea/converters083/impl/ComponentModelConverter.java b/plugins/org.eclipse.app4mc.amalthea.converters.083/src/org/eclipse/app4mc/amalthea/converters083/impl/ComponentModelConverter.java index e05db49..590c74f 100644 --- a/plugins/org.eclipse.app4mc.amalthea.converters.083/src/org/eclipse/app4mc/amalthea/converters083/impl/ComponentModelConverter.java +++ b/plugins/org.eclipse.app4mc.amalthea.converters.083/src/org/eclipse/app4mc/amalthea/converters083/impl/ComponentModelConverter.java
@@ -151,7 +151,7 @@ /* * This is the case where Port element from other file is referenced - * In this case, below scernarios should be considered: + * In this case, below scenarios should be considered: * 1.type updation * 2.reference href updation */
diff --git a/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/impl/HwConverter.java b/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/impl/HwConverter.java index 764d501..eaa82eb 100644 --- a/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/impl/HwConverter.java +++ b/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/impl/HwConverter.java
@@ -105,7 +105,8 @@ /** * This method is used for the migration of HwModel element inside AMALTHEA model file. * Contents of HwModel from 0.8.3 are extracted and are transformed into valid HwModel contents as per 0.9.0. - * <br><b>Note</b>: If multiple AMALTHEA models have HwModel elements, then their contents are extracted and and the below contents are cummilatively stored inside a first HwModel: + * <br><b>Note</b>: If multiple AMALTHEA models have HwModel elements, then their contents are extracted + * and the below contents are cumulatively stored inside a first HwModel: * <ol> * <li>MemoryType</li> * <li>Quartz</li>
diff --git a/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/utils/HWCacheBuilder.java b/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/utils/HWCacheBuilder.java index 17fa770..edc452a 100644 --- a/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/utils/HWCacheBuilder.java +++ b/plugins/org.eclipse.app4mc.amalthea.converters.090/src/org/eclipse/app4mc/amalthea/converters090/utils/HWCacheBuilder.java
@@ -31,7 +31,7 @@ @Component( property = ServiceConstants.INPUT_MODEL_VERSION_PROPERTY + "=0.8.3", - service = {ICache.class, HWCacheBuilder.class}) + service = { ICache.class, HWCacheBuilder.class }) public class HWCacheBuilder implements ICache { @@ -39,7 +39,7 @@ SessionLogger logger; public static final String cache_key = "PeriodicStimulus_Containing_Clock"; - + private final HashMap<File, Map<String, Object>> map = new HashMap<>(); @Override @@ -62,15 +62,15 @@ Element rootElement = document.getRootElement(); - if (rootElement !=null) { + if (rootElement != null) { Element oldHWModelElement = rootElement.getChild("hwModel"); - if (oldHWModelElement!=null) { + if (oldHWModelElement != null) { Element oldHWSystem = oldHWModelElement.getChild("system"); - if (oldHWSystem!=null) { + if (oldHWSystem != null) { List<Element> oldHWQuartzes = oldHWSystem.getChildren("quartzes"); @@ -78,7 +78,7 @@ String attributeValue = oldHWQuartz.getAttributeValue("name"); - if (attributeValue!=null) { + if (attributeValue != null) { cache.getOldHwQuartzsMap().put(HelperUtil.encodeName(attributeValue), oldHWQuartz); } } @@ -94,7 +94,7 @@ for (Element oldHWCore : oldHWCores) { String attributeValue = oldHWCore.getAttributeValue("name"); - if(attributeValue!=null) { + if (attributeValue != null) { cache.getOldCoresMap().put(HelperUtil.encodeName(attributeValue), oldHWCore); } } @@ -107,8 +107,9 @@ for (Element oldHWMemoryType : oldHWMemoryTypes) { String attributeValue = oldHWMemoryType.getAttributeValue("name"); - if(attributeValue!=null) { - cache.getOldMemoryTypesDefinitionMap().put(HelperUtil.encodeName(attributeValue), oldHWMemoryType); + if (attributeValue != null) { + cache.getOldMemoryTypesDefinitionMap().put(HelperUtil.encodeName(attributeValue), + oldHWMemoryType); } } } @@ -119,7 +120,7 @@ HashMap<String, Object> hashMap = new HashMap<>(); hashMap.put("globalCache", cache); this.map.put(targetFile, hashMap); - } + } } @Override