code: protected Integer[] getVersionParts() {
  
          String[] sParts = version.split("\\.");
          ArrayList<Integer> iParts = new ArrayList<>();
          int trailingZeros = 0;
  
          for (String sPart : sParts) {
              Integer iPart = new Integer(sPart);
  
              if (iPart == 0) {
                  ++trailingZeros;
              } else {
                  for (int i = 0; i < trailingZeros; ++i) {
                      iParts.add(0);
                  }
                  trailingZeros = 0;
                  iParts.add(iPart);
              }
          }
          return iParts.toArray(new Integer[iParts.size()]);
      }
docs: Get the version parts array by splitting the version string.
  Strip the trailing zeros (i.e. '1.0.0' equals '1').
  
  @return  the version parts array