Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for wrapArgs (0.09 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/DirectInstantiator.java

        }
    
        private DirectInstantiator() {
        }
    
        @Override
        public <T> T newInstance(Class<? extends T> type, Object... params) {
            try {
                Class<?>[] argTypes = wrapArgs(params);
                Constructor<?> match = null;
                while (match == null) {
                    // we need to wrap this into a loop, because there's always a risk
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. src/fmt/errors.go

    // It is invalid to supply the %w verb with an operand that does not implement
    // the error interface. The %w verb is otherwise a synonym for %v.
    func Errorf(format string, a ...any) error {
    	p := newPrinter()
    	p.wrapErrs = true
    	p.doPrintf(format, a)
    	s := string(p.buf)
    	var err error
    	switch len(p.wrappedErrs) {
    	case 0:
    		err = errors.New(s)
    	case 1:
    		w := &wrapError{msg: s}
    		w.err, _ = a[p.wrappedErrs[0]].(error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/fmt/print.go

    	panicking bool
    	// erroring is set when printing an error string to guard against calling handleMethods.
    	erroring bool
    	// wrapErrs is set when the format string may contain a %w verb.
    	wrapErrs bool
    	// wrappedErrs records the targets of the %w verb.
    	wrappedErrs []int
    }
    
    var ppFree = sync.Pool{
    	New: func() any { return new(pp) },
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
Back to top