Skip to content

Commit 903b453

Browse files
committed
[#361] Update CMSIS Packs to v1.6.0 specs
1 parent 60359ef commit 903b453

File tree

1 file changed

+5
-5
lines changed
  • bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/cmsis

1 file changed

+5
-5
lines changed

bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/cmsis/PdscUtils.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@
1818
*/
1919
public class PdscUtils {
2020

21+
private static int highestMinorForOne = 6;
22+
2123
/**
2224
* Validate the schema version.
2325
*
24-
* @param semVer
25-
* a semantic version object.
26+
* @param semVer a semantic version object.
2627
* @return true if the value is valid.
2728
*/
2829
public static boolean isSchemaValid(Version semVer) {
2930

3031
int major = semVer.getMajorVersion();
3132
int minor = semVer.getMinorVersion();
3233

33-
if ((major == 1) && (minor <= 4)) {
34+
if ((major == 1) && (minor <= highestMinorForOne)) {
3435
return true;
3536
} else {
3637
return false;
@@ -40,8 +41,7 @@ public static boolean isSchemaValid(Version semVer) {
4041
/**
4142
* Convert a Windows path into a POSIX path.
4243
*
43-
* @param spath
44-
* the string representing the Windows path.
44+
* @param spath the string representing the Windows path.
4545
* @return the corresponding POSIX path.
4646
*/
4747
public static String updatePosixSeparators(String spath) {

0 commit comments

Comments
 (0)