Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for AssertionError (0.47 sec)

  1. android/guava/src/com/google/common/io/ByteStreams.java

          try {
            output.write(b);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void write(byte[] b) {
          try {
            output.write(b);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void write(byte[] b, int off, int len) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Cut.java

            BoundType boundType, DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
        void describeAsLowerBound(StringBuilder sb) {
          sb.append("(-\u221e");
        }
    
        @Override
        void describeAsUpperBound(StringBuilder sb) {
          throw new AssertionError();
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

            }
          }
        };
      }
    
      /** Alternative to AssertionError(String, Throwable), which doesn't exist in Java 1.6 */
      private static AssertionError newAssertionError(String message, Throwable cause) {
        AssertionError e = new AssertionError(message);
        e.initCause(cause);
        return e;
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Cut.java

            BoundType boundType, DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
        void describeAsLowerBound(StringBuilder sb) {
          sb.append("(-\u221e");
        }
    
        @Override
        void describeAsUpperBound(StringBuilder sb) {
          throw new AssertionError();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/JoinerTest.java

        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, set.iterator());
        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, array);
        } catch (IOException e) {
          throw new AssertionError(e);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

                && packagesToTest.contains(Reflection.getPackageName(instance.getClass()))) {
              try {
                nullPointerTester.testAllPublicInstanceMethods(instance);
              } catch (AssertionError e) {
                AssertionError error =
                    new AssertionFailedError("Null check failed on return value of " + factory);
                error.initCause(e);
                throw error;
              }
            }
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/QueuesTest.java

        // nothing to drain, thus this should wait doing nothing
        try {
          assertEquals(0, Queues.drain(q, ImmutableList.of(), 0, 10, MILLISECONDS));
        } catch (InterruptedException e) {
          throw new AssertionError();
        }
    
        // but does the wait actually occurs?
        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/IntMath.java

            // floor(2^(logFloor + 0.5))
            int logFloor = (Integer.SIZE - 1) - leadingZeros;
            return logFloor + lessThanBranchFree(cmp, x);
    
          default:
            throw new AssertionError();
        }
      }
    
      /** The biggest half power of two that can fit in an unsigned int. */
      @VisibleForTesting static final int MAX_POWER_OF_SQRT2_UNSIGNED = 0xB504F333;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/JoinerTest.java

        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, set.iterator());
        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, array);
        } catch (IOException e) {
          throw new AssertionError(e);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
            AssertionError error = new AssertionError("malformed class path entry: " + entry);
            error.initCause(e);
            throw error;
          }
        }
        return urls.build();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
Back to top