Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for putAt (0.03 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MapPropertyExtensions.java

         *
         * @param self the {@link MapProperty}
         * @param key the key
         * @param value the value or a {@link Provider} of the value
         */
        @SuppressWarnings("unchecked")
        public static <K, V> void putAt(MapProperty<K, V> self, K key, Object value) {
            if (value instanceof Provider<?>) {
                self.put(key, (Provider) value);
            } else {
                self.put(key, (V) value);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. pkg/config/validation/validation_test.go

    			ExposeHeaders: []string{"header3"},
    			MaxAge:        &durationpb.Duration{Seconds: 2},
    		}, valid: true},
    		{name: "bad method", in: &networking.CorsPolicy{
    			AllowMethods:  []string{"GET", "PUTT"},
    			AllowHeaders:  []string{"header1", "header2"},
    			ExposeHeaders: []string{"header3"},
    			MaxAge:        &durationpb.Duration{Seconds: 2},
    		}, valid: false},
    		{name: "bad header", in: &networking.CorsPolicy{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
Back to top