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 Original file line number Diff line number Diff line change 18
18
*/
19
19
public class PdscUtils {
20
20
21
+ private static int highestMinorForOne = 6 ;
22
+
21
23
/**
22
24
* Validate the schema version.
23
25
*
24
- * @param semVer
25
- * a semantic version object.
26
+ * @param semVer a semantic version object.
26
27
* @return true if the value is valid.
27
28
*/
28
29
public static boolean isSchemaValid (Version semVer ) {
29
30
30
31
int major = semVer .getMajorVersion ();
31
32
int minor = semVer .getMinorVersion ();
32
33
33
- if ((major == 1 ) && (minor <= 4 )) {
34
+ if ((major == 1 ) && (minor <= highestMinorForOne )) {
34
35
return true ;
35
36
} else {
36
37
return false ;
@@ -40,8 +41,7 @@ public static boolean isSchemaValid(Version semVer) {
40
41
/**
41
42
* Convert a Windows path into a POSIX path.
42
43
*
43
- * @param spath
44
- * the string representing the Windows path.
44
+ * @param spath the string representing the Windows path.
45
45
* @return the corresponding POSIX path.
46
46
*/
47
47
public static String updatePosixSeparators (String spath ) {
You can’t perform that action at this time.
0 commit comments