Procházet zdrojové kódy

fix build number detection

tags/2.0.1
Jonathan Cobb před 3 roky
rodič
revize
696dd95a70
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. +2
    -3
      wizard-common/src/main/java/org/cobbzilla/wizard/model/SemanticVersion.java

+ 2
- 3
wizard-common/src/main/java/org/cobbzilla/wizard/model/SemanticVersion.java Zobrazit soubor

@@ -56,9 +56,8 @@ public class SemanticVersion implements Comparable<SemanticVersion>, Serializabl
setMajor(Integer.parseInt(matcher.group(1)));
setMinor(Integer.parseInt(matcher.group(2)));
setPatch(Integer.parseInt(matcher.group(3)));
if (matcher.groupCount() > 4) {
setBuild(Integer.valueOf(matcher.group(5)));
}
final String buildNumber = matcher.group(5);
if (!empty(buildNumber)) setBuild(Integer.valueOf(buildNumber));
}

@Max(value=SV_VERSION_MAX, message=SV_MAJOR_TOO_LARGE)


Načítá se…
Zrušit
Uložit