From 903b453777e65b8dae6d9bd95caf1a1d0c47b89a Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sat, 21 Sep 2019 20:11:37 +0300 Subject: [PATCH] [#361] Update CMSIS Packs to v1.6.0 specs --- .../src/ilg/gnumcueclipse/packs/cmsis/PdscUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/cmsis/PdscUtils.java b/bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/cmsis/PdscUtils.java index 787255036..0909f8e38 100644 --- a/bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/cmsis/PdscUtils.java +++ b/bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/cmsis/PdscUtils.java @@ -18,11 +18,12 @@ */ public class PdscUtils { + private static int highestMinorForOne = 6; + /** * Validate the schema version. * - * @param semVer - * a semantic version object. + * @param semVer a semantic version object. * @return true if the value is valid. */ public static boolean isSchemaValid(Version semVer) { @@ -30,7 +31,7 @@ public static boolean isSchemaValid(Version semVer) { int major = semVer.getMajorVersion(); int minor = semVer.getMinorVersion(); - if ((major == 1) && (minor <= 4)) { + if ((major == 1) && (minor <= highestMinorForOne)) { return true; } else { return false; @@ -40,8 +41,7 @@ public static boolean isSchemaValid(Version semVer) { /** * Convert a Windows path into a POSIX path. * - * @param spath - * the string representing the Windows path. + * @param spath the string representing the Windows path. * @return the corresponding POSIX path. */ public static String updatePosixSeparators(String spath) {