Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wrapArgs (0.1 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)
Back to top