Gets the Javadoc version.

@return The Javadoc version.
176164
public JavadocQuirks getJavadocVersion() {
        if ( javadocVersion == null ) {
            String javaVersion = System.getProperty("java.version");
            if ( javaVersion != null && javaVersion.compareTo("1.8") >= 0 ) {
                return JavadocQuirks.V8;
            }
            else {
                return JavadocQuirks.V7;
            }
        }
        return javadocVersion;
    }
117362
public int getVersion() throws SQLException {
        try {
            return this.submit(new VersionCallable()).get();
        } catch (InterruptedException e) {
            logger.log(Level.SEVERE, "Failed to get database version", e);
            throw new SQLException(e);
        } catch (ExecutionException e) {
            logger.log(Level.SEVERE, "Failed to get database version", e);
            throw new SQLException(e);
        }
    }
772453
public java.lang.String getVersion() {
    java.lang.Object ref = version_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        version_ = s;
      }
      return s;
    }
  }
17276
public java.util.List<? extends com.google.appengine.v1.VersionOrBuilder> 
      getVersionsOrBuilderList() {
    return versions_;
  }
910713
public static String getVersionString() {
		String versionString = "UNKNOWN";
		Properties propeties = getProperites();
		if(propeties != null) {
			versionString = propeties.getProperty("finmath-lib.version");
		}
		return versionString;
	}
1278835
private static int getJavaVersion() {
		String version = System.getProperty("java.version");
		if (version == null) {
			return -1;
		} else {
			int index = version.indexOf('.');
			if (index > 0) {
				version = version.substring(0, index);
			}

			try {
				return Integer.parseInt(version);
			} catch (NumberFormatException ex) {
				return -1;
			}
		}
	}
379967
public static String getVersion() {
    String version = "unknown";
    final URLClassLoader cl = (URLClassLoader)cclass.getClassLoader();
    try {
      final URL url = cl.findResource("META-INF/MANIFEST.MF");
      final Manifest manifest = new Manifest(url.openStream());
      for (Entry<Object,Object> entry : manifest.getMainAttributes().entrySet()) {
        final Attributes.Name key = (Attributes.Name)entry.getKey();
        if(Attributes.Name.IMPLEMENTATION_VERSION.equals(key)) {
          version = (String)entry.getValue();
        }
      }
    } catch (IOException e) {
      logger.error("Unable to determine the product version due to error", e);
    }
    return version;
  }
856261
public static String getVersion() {

        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        if (classLoader == null) {
            classLoader = Togglz.class.getClassLoader();
        }

        URL url = classLoader.getResource("META-INF/maven/org.togglz/togglz-core/pom.properties");
        if (url != null) {

            InputStream stream = null;
            try {

                stream = url.openStream();

                Properties props = new Properties();
                props.load(stream);

                return Strings.trimToNull(props.getProperty("version"));

            } catch (IOException e) {
                // ignore
            } finally {
                if (stream != null) {
                    try {
                        stream.close();
                    } catch (IOException e) {
                        // ignore
                    }
                }
            }

        }
        return null;

    }
1264850
public static String getVersion()
    {
    Properties tcasesProperties = new Properties();
    String tcasesPropertyFileName = "/tcases.properties";
    InputStream tcasesPropertyFile = null;
    try
      {
      tcasesPropertyFile = Tcases.class.getResourceAsStream( tcasesPropertyFileName);
      tcasesProperties.load( tcasesPropertyFile);
      }
    catch( Exception e)
      {
      throw new RuntimeException( "Can't read " + tcasesPropertyFileName, e);
      }
    finally
      {
      IOUtils.closeQuietly( tcasesPropertyFile);
      }

    return
      "Tcases "
      + tcasesProperties.getProperty( "tcases.version") + " ("
      + tcasesProperties.getProperty( "tcases.date")
      + ")";
    }
105248
def java_version():
    
    result = subprocess.check_output(
        [c.JAVA, '-version'], stderr=subprocess.STDOUT
    )
    first_line = result.splitlines()[0]
    return first_line.decode()
300218
static int getMajorVersion(String javaSpecVersion) {
        try {
            if (javaSpecVersion.contains(".")) { //before jdk 9
                return Integer.parseInt(javaSpecVersion.split("\\.")[1]);
            } else {
                return Integer.parseInt(javaSpecVersion);
            }
        } catch (NumberFormatException e ){
            throw getUnableToParseVersionException(javaSpecVersion);
        }
    }
650150
@Override
	public Mono<VersionInfo> version() {
		return credHubOperations.doWithWebClient(webClient -> webClient
				.get()
				.uri(VERSION_URL_PATH)
				.retrieve()
				.onStatus(HttpStatus::isError, ExceptionUtils::buildError)
				.bodyToMono(VersionInfo.class));
	}
607552
public double getRequiredVersion() {

        if (m_requiredVersion == 0) {
            String versionStr = getConfigurationContentStringValue(NODE_VERSION);
            try {
                m_requiredVersion = Double.parseDouble(versionStr);
            } catch (Exception e) {
                // the version number is not in the correct format
                LOG.error(
                    Messages.get().getBundle().key(
                        Messages.LOG_USERAGREEMENT_WRONG_VERSION_2,
                        versionStr,
                        getConfigurationContent().getFile().getRootPath()));
            }
        }
        return m_requiredVersion;
    }
295109
public IndexFormatVersion getIndexFormatVersion()
   {
      if (indexFormatVersion == null)
      {
         if (getContext().getParentHandler() instanceof SearchIndex)
         {
            SearchIndex parent = (SearchIndex)getContext().getParentHandler();
            if (parent.getIndexFormatVersion().getVersion() < indexRegister.getDefaultIndex().getIndexFormatVersion().getVersion())
            {
               indexFormatVersion = parent.getIndexFormatVersion();
            }
            else
            {
               indexFormatVersion = indexRegister.getDefaultIndex().getIndexFormatVersion();
            }
         }
         else
         {
            indexFormatVersion = indexRegister.getDefaultIndex().getIndexFormatVersion();
         }
      }
      return indexFormatVersion;
   }
1140547
@Override
    public VersionInfo getVersion() {
        int version = tailoring.version;
        int rtVersion = VersionInfo.UCOL_RUNTIME_VERSION.getMajor();
        return VersionInfo.getInstance(
                (version >>> 24) + (rtVersion << 4) + (rtVersion >> 4),
                ((version >> 16) & 0xff), ((version >> 8) & 0xff), (version & 0xff));
    }
1193701
public String featureVersion(final String featureName) {
        String version = toString();
        if (featureName != null) {
            version = getReleaseVersionString() + "-" + featureName
                    + (isSnapshot() ? "-" + Artifact.SNAPSHOT_VERSION : "");
        }
        return version;
    }
41940
public final Version version() {
        return new Version(bundle.getVersion().getMajor(), bundle.getVersion().getMinor(),
                bundle.getVersion().getMicro(), null, null, null);
    }