Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for Reflection (0.31 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        /*
         * We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
         * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's
         * reflection implementation.
         */
        try {
          new TypeToken<T>() {};
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testRawTypeIsCorrect() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/Futures.java

       * (preferring constructors with at least one {@code String}, then preferring constructors with at
       * least one {@code Throwable}) and calling the constructor via reflection. If the exception did
       * not already have a cause, one is set by calling {@link Throwable#initCause(Throwable)} on it.
       * If no such constructor exists, an {@code IllegalArgumentException} is thrown.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 64.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        /*
         * We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
         * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's
         * reflection implementation.
         */
        try {
          new TypeToken<T>() {};
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testRawTypeIsCorrect() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  4. src/reflect/type.go

    // Zero takes a Type and returns a Value representing a zero value
    // for that type.
    //
    // See "The Laws of Reflection" for an introduction to reflection in Go:
    // https://golang.org/doc/articles/laws_of_reflection.html
    package reflect
    
    import (
    	"internal/abi"
    	"internal/goarch"
    	"strconv"
    	"sync"
    	"unicode"
    	"unicode/utf8"
    	"unsafe"
    )
    
    // Type is the representation of a Go type.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

       * noted, but the initial table is a zero-length array.
       *
       * <p>This test may fail miserably on non-OpenJDK environments...
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // relies on assumptions about OpenJDK
      public void testNewHashMapWithExpectedSize_wontGrow() throws Exception {
        // before jdk7u40: creates one-bucket table
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        Value reflection_if_finite =
            rewriter.create<SubOp>(loc, log_pi_minus_reflection_denom, log_y);
        Value reflection = rewriter.create<SelectV2Op>(
            loc, is_finite, reflection_if_finite, neg_reflection_denom);
    
        Value result =
            rewriter.create<SelectV2Op>(loc, need_to_reflect, reflection, log_y);
    
        // lgamma(+/-inf) = +inf.
        Value is_inf = rewriter.create<IsInfOp>(loc, tensor_bool_type, input);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

       * (preferring constructors with at least one {@code String}, then preferring constructors with at
       * least one {@code Throwable}) and calling the constructor via reflection. If the exception did
       * not already have a cause, one is set by calling {@link Throwable#initCause(Throwable)} on it.
       * If no such constructor exists, an {@code IllegalArgumentException} is thrown.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    This meant any tests were able to perform deep reflection on JDK internals without warning or failing.
    This caused tests to be unreliable by allowing code to pass when it would otherwise fail in a production environment.
    
    These implicit arguments have been removed and are no longer added by default.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.timeout;
    import static org.mockito.Mockito.verify;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.reflect.Reflection;
    import com.google.common.truth.FailureStrategy;
    import com.google.common.truth.StandardSubjectBuilder;
    import com.google.common.util.concurrent.ClosingFuture.AsyncClosingCallable;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *     OkHttp needs to build a clean certificate chain. This method instead must use reflection
         *     to extract the trust manager. Applications should prefer to call
         *     `sslSocketFactory(SSLSocketFactory, X509TrustManager)`, which avoids such reflection.
         */
        @Deprecated(
          message = "Use the sslSocketFactory overload that accepts a X509TrustManager.",
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
Back to top