Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 187 for AssertionError (0.86 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

          } catch (SocketException | UnknownHostException e) {
            throw new IllegalArgumentException("No such interface: " + scope, e);
          }
        } catch (UnknownHostException e) {
          throw new AssertionError(e);
        }
      }
    
      /**
       * Returns the string representation of an {@link InetAddress}.
       *
       * <p>For IPv4 addresses, this is identical to {@link InetAddress#getHostAddress()}, but for IPv6
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          }
        }
    
        // Unfortunately this is pasted from ImmutableCollection.Builder.
        private static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
            throw new AssertionError("cannot store more than MAX_VALUE elements");
          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
          if (newCapacity < minCapacity) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeResolver.java

              return captureAsTypeVariable(wildcardType.getUpperBounds());
            } else {
              // TODO(benyu): handle ? super T somehow.
              return type;
            }
          }
          throw new AssertionError("must have been one of the known types");
        }
    
        TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) {
          String name =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/ImmutableIntArray.java

          }
        }
    
        // Unfortunately this is pasted from ImmutableCollection.Builder.
        private static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
            throw new AssertionError("cannot store more than MAX_VALUE elements");
          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
          if (newCapacity < minCapacity) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            return i;
          }
        }
        throw new AssertionError(
            "Expected element " + clazz + "." + method + " not found in stack trace", e);
      }
    
      private ExecutionException getExpectingExecutionException(AbstractFuture<String> future)
          throws InterruptedException {
        try {
          String got = future.get();
          throw new AssertionError("Expected exception but got " + got);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * #entrySet}.
       */
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      @Override
      final ImmutableSet<V> createValues() {
        throw new AssertionError("should never be called");
      }
    
      /**
       * Guaranteed to throw an exception and leave the bimap unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

              return null
            }
    
            override fun connectFailed(
              uri: URI,
              socketAddress: SocketAddress,
              e: IOException,
            ): Unit = throw AssertionError()
          }
    
        val address =
          factory.newAddress(
            proxySelector = nullProxySelector,
          )
        val routeSelector = newRouteSelector(address)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        void write_lenZero_noIO() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false));
            // If ensureOpen is called, fail the test
            doThrow(new AssertionError("ensureOpen should not be called")).when(raf).ensureOpen();
            raf.write(new byte[1], 0, 0);
        }
    
        @Test
        @DisplayName("Null inputs: read(byte[]) and write* with nulls throw NPE")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Types.java

          for (ClassOwnership behavior : ClassOwnership.values()) {
            if (behavior.getOwnerType(LocalClass.class) == parameterizedType.getOwnerType()) {
              return behavior;
            }
          }
          throw new AssertionError();
        }
      }
    
      /**
       * Returns a new {@link TypeVariable} that belongs to {@code declaration} with {@code name} and
       * {@code bounds}.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

            // We closed the writer: now both reader and writer are closed.
            if (sendOnClosed) {
              listener.onClosed(this, receivedCloseCode, receivedCloseReason!!)
            }
          } else {
            throw AssertionError()
          }
    
          return true
        } finally {
          writerToClose?.closeQuietly()
        }
      }
    
      internal fun writePingFrame() {
        val writer: WebSocketWriter
        val failedPing: Int
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
Back to top