Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for unsupportedOperation (0.5 sec)

  1. platforms/jvm/jvm-services/src/main/java/org/gradle/internal/jvm/inspection/JvmInstallationMetadata.java

            }
    
            @Override
            public String getRuntimeVersion() {
                throw unsupportedOperation();
            }
    
            @Override
            public String getJvmName() {
                throw unsupportedOperation();
            }
    
            @Override
            public String getJvmVersion() {
                throw unsupportedOperation();
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
        try {
          getMap().clear();
          fail(
              "clear() should throw UnsupportedOperation if a map does "
                  + "not support it and is not empty.");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
        try {
          collection.clear();
          fail(
              "clear() should throw UnsupportedOperation if a collection does "
                  + "not support it and is not empty.");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

                  (K k, V v) -> {
                    int index = keys().asList().indexOf(k);
                    return values().asList().get(index + 1);
                  });
          fail(
              "replaceAll() should throw UnsupportedOperation if a map does "
                  + "not support it and is not empty.");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
        try {
          collection.clear();
          fail(
              "clear() should throw UnsupportedOperation if a collection does "
                  + "not support it and is not empty.");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
        try {
          getMap().clear();
          fail(
              "clear() should throw UnsupportedOperation if a map does "
                  + "not support it and is not empty.");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  7. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetectorTest.groovy

                }
                Mock(ExecResult)
            }
            exec.build() >> handle
            execHandleFactory
        }
    
        static void assertIsUnsupported(Closure<?> unsupportedOperation) {
            try {
                unsupportedOperation.run()
                throw new SpockAssertionError("Expected to throw UnsupportedOperationException")
            } catch (UnsupportedOperationException ignored) {
                // expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar

    an array"); } this.array = array; } @Override public boolean hasNext() { return currentIndex < Array.getLength(array); } @Override public Object next() { return Array.get(array, currentIndex++); } @Override public void remove() { throw new UnsupportedOperation("cannot remove items from an array"); } } org/hamcrest/internal/ReflectiveTypeFinder.java org/hamcrest/internal/ReflectiveTypeFinder.java /** * The TypeSafe classes, and their descendants, need a mechanism to find out what type has been used...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Oct 02 08:41:25 UTC 2022
    - 31.9K bytes
    - Viewed (0)
  9. pkg/webhooks/validation/server/monitoring.go

    		Increment()
    }
    
    func reportValidationHTTPError(status int) {
    	metricValidationHTTPError.
    		With(StatusTag.Value(strconv.Itoa(status))).
    		Increment()
    }
    
    const (
    	reasonUnsupportedOperation = "unsupported_operation"
    	reasonYamlDecodeError      = "yaml_decode_error"
    	reasonUnknownType          = "unknown_type"
    	reasonCRDConversionError   = "crd_conversion_error"
    	reasonInvalidConfig        = "invalid_resource"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 16:50:34 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top