Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 107 for parseList (0.14 sec)

  1. platforms/jvm/toolchains-jvm-shared/src/main/java/org/gradle/jvm/toolchain/JavaLanguageVersion.java

        static JavaLanguageVersion of(int version) {
            return DefaultJavaLanguageVersion.of(version);
        }
    
        static JavaLanguageVersion of(String version) {
            return of(Integer.parseInt(version));
        }
    
        /**
         * Get the current (i.e., the current runtime) Java Language version.
         *
         * @return the current Java Language version
         * @since 8.8
         */
        @Incubating
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/TestableDaemon.groovy

            Matcher matcher = pattern.matcher(daemonLog.text);
            assert matcher.matches(): "Unable to find daemon address in the daemon log. Daemon: $context"
    
            try {
                return Integer.parseInt(matcher.group(1))
            } catch (NumberFormatException e) {
                throw new RuntimeException("Unexpected format of the port number found in the daemon log. Daemon: $context")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. cmd/net.go

    var localIP4 = mustGetLocalIP4()
    
    // mustSplitHostPort is a wrapper to net.SplitHostPort() where error is assumed to be a fatal.
    func mustSplitHostPort(hostPort string) (host, port string) {
    	xh, err := xnet.ParseHost(hostPort)
    	if err != nil {
    		logger.FatalIf(err, "Unable to split host port %s", hostPort)
    	}
    	return xh.Name, xh.Port.String()
    }
    
    // mustGetLocalIPs returns IPs of local interface
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/SystemClassLoaderTest.groovy

            lines.find { it == heading } // here for nicer output if the output isn't what we expect
            def headingIndex = lines.indexOf(heading)
            def classpathSize = Integer.parseInt(lines[headingIndex + 1])
            // The gradle-launcher.jar is mandatory.
            // The gradle-instrumentation-agent.jar may not be available if the build runs in no-daemon mode.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/FileZipInput.java

            if (versionParts.length < 1) {
                throw new IllegalArgumentException("Could not determine java version from '" + versionString + "'.");
            }
            return Integer.parseInt(versionParts[0]) >= 11;
        }
    
        private final ZipFile file;
        private final Enumeration<? extends java.util.zip.ZipEntry> entries;
    
        private FileZipInput(File file) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/jvm/internal/DefaultJvmLanguageUtilities.java

                int flagIndex = compilerArgs.indexOf("--release");
    
                if (flagIndex != -1 && flagIndex + 1 < compilerArgs.size()) {
                    return Integer.parseInt(String.valueOf(compilerArgs.get(flagIndex + 1)));
                } else {
                    return JavaVersion.toVersion(compileTask.getTargetCompatibility()).getMajorVersionNumber();
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:47:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/crypto/internal/mlkem768/mlkem768_test.go

    	// FloatString rounds halves away from 0, and our result should always be positive,
    	// so it should work as we expect. (There's no direct way to round a Rat.)
    	rounded, err := strconv.ParseInt(precise.FloatString(0), 10, 64)
    	if err != nil {
    		panic(err)
    	}
    
    	// If we rounded up, `rounded` may be equal to 2ᵈ, so we perform a final reduction.
    	return uint16(rounded % (1 << d))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:27:18 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/database/sql/convert.go

    		if src == nil {
    			return fmt.Errorf("converting NULL to %s is unsupported", dv.Kind())
    		}
    		s := asString(src)
    		u64, err := strconv.ParseUint(s, 10, dv.Type().Bits())
    		if err != nil {
    			err = strconvErr(err)
    			return fmt.Errorf("converting driver.Value type %T (%q) to a %s: %v", src, s, dv.Kind(), err)
    		}
    		dv.SetUint(u64)
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. cmd/consolelogger.go

    func (sys *HTTPConsoleLoggerSys) SetNodeName(nodeName string) {
    	if !globalIsDistErasure {
    		sys.nodeName = ""
    		return
    	}
    
    	host, err := xnet.ParseHost(globalLocalNodeName)
    	if err != nil {
    		logger.FatalIf(err, "Unable to start console logging subsystem")
    	}
    
    	sys.nodeName = host.Name
    }
    
    // HasLogListeners returns true if console log listeners are registered
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. operator/pkg/validate/validate_values_test.go

    		},
    		{
    			desc: "BadPortMalformed",
    			yamlStr: `
    global:
      proxy:
        excludeInboundPorts: "111,222x"
    `,
    			wantErrs: makeErrors([]string{`global.proxy.excludeInboundPorts : strconv.ParseInt: parsing "222x": invalid syntax`}),
    		},
    		{
    			desc: "unknown field",
    			yamlStr: `
    global:
      proxy:
        foo: "bar"
    `,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top