code: static void checkDoublesSerVer(final int serVer, final int minSupportedSerVer) {
      final int max = DoublesSketch.DOUBLES_SER_VER;
      if ((serVer > max) || (serVer < minSupportedSerVer)) {
        throw new SketchesArgumentException(
            "Possible corruption: Unsupported Serialization Version: " + serVer);
      }
    }
docs: Check the validity of the given serialization version
  @param serVer the given serialization version
  @param minSupportedSerVer the oldest serialization version supported