Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for majorVersion (0.1 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            } else {
                return compareTo(new DefaultArtifactVersion(otherVersion.toString()));
            }
        }
    
        public int getMajorVersion() {
            return majorVersion != null ? majorVersion : 0;
        }
    
        public int getMinorVersion() {
            return minorVersion != null ? minorVersion : 0;
        }
    
        public int getIncrementalVersion() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/JSSETest.kt

        val response = client.newCall(request).execute()
    
        response.use {
          assertEquals(200, response.code)
          if (PlatformVersion.majorVersion > 11) {
            assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion)
          }
          if (PlatformVersion.majorVersion > 8) {
            assertEquals(Protocol.HTTP_2, response.protocol)
          }
    
          assertThat(response.connection.socket().javaClass.name).isEqualTo(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/test/kotlin/okhttp3/testing/PlatformRuleTest.kt

      }
    
      @Test
      fun testGreenCase() {
      }
    
      @Test
      fun testGreenCaseFailingOnLater() {
        platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion + 1)
      }
    
      @Test
      fun failureCase() {
        platform.expectFailureFromJdkVersion(PlatformVersion.majorVersion)
    
        check(false)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

              SSLContext.getInstance("TLS")
            }
        }
      }
    
      companion object {
        val isAvailable: Boolean
    
        val majorVersion = System.getProperty("java.specification.version")?.toIntOrNull()
    
        init {
          isAvailable =
            if (majorVersion != null) {
              majorVersion >= 9
            } else {
              try {
                // also present on JDK8 after build 252.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (1)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

        }
    
        fun expectFailureFromJdkVersion(majorVersion: Int) {
          if (!TestUtil.isGraalVmImage) {
            expectFailure(fromMajor(majorVersion))
          }
        }
    
        fun expectFailureOnJdkVersion(majorVersion: Int) {
          if (!TestUtil.isGraalVmImage) {
            expectFailure(onMajor(majorVersion))
          }
        }
    
        fun expectFailureOnLoomPlatform() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

    import kotlin.test.assertFailsWith
    import okhttp3.internal.applyConnectionSpec
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import okhttp3.testing.PlatformRule
    import okhttp3.testing.PlatformVersion.majorVersion
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class ConnectionSpecTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @Test
      fun noTlsVersions() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                version = prop.getProperty("fess.version", "0.0.0");
                final String[] values = version.split("\\.");
                majorVersion = Integer.parseInt(values[0]);
                minorVersion = Integer.parseInt(values[1]);
                productVersion = majorVersion + "." + minorVersion;
                System.setProperty("fess.version", version);
                System.setProperty("fess.product.version", productVersion);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformVersion.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.testing
    
    object PlatformVersion {
      val majorVersion: Int by lazy {
        when (val jvmSpecVersion = getJvmSpecVersion()) {
          "1.8" -> 8
          else -> jvmSpecVersion.toInt()
        }
      }
    
      fun getJvmSpecVersion(): String {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 917 bytes
    - Viewed (0)
  9. pom.xml

    		<osgi-version-qualifier>${maven.build.timestamp}</osgi-version-qualifier>
    		<osgi.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${osgi-version-qualifier}</osgi.version>
    		<osgi.pkg.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</osgi.pkg.version>
    	</properties>
    	<build>
    		<plugins>
    			<plugin>
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Sep 26 04:40:32 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

        assertThat(recorded.headers["Accept-Encoding"]).isNull() // No built-in gzip.
        assertThat(recorded.headers["Connection"]).isEqualTo("Upgrade, HTTP2-Settings")
        if (PlatformVersion.majorVersion < 19) {
          assertThat(recorded.headers["Content-Length"]).isEqualTo("0")
        }
        assertThat(recorded.headers["HTTP2-Settings"]).isNotNull()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top