Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for wrong (0.08 sec)

  1. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

            // Arrange: Build sequence with invalid version and otherwise valid tags
            ASN1EncodableVector v = new ASN1EncodableVector();
            v.add(new DERTaggedObject(true, 0, new ASN1Integer(badPvno))); // wrong pvno
            v.add(new DERTaggedObject(true, 1, new ASN1Integer(Integer.parseInt(KerberosConstants.KERBEROS_AP_REQ))));
            v.add(new DERTaggedObject(true, 2, new DERBitString(new byte[] { 0x00 })));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

        public void testHandleGuidInvalidBytes() {
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[8]); // Wrong length
            });
    
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[20]); // Wrong length
            });
        }
    
        @Test
        public void testHandleGuidEqualsAndHashCode() {
            UUID uuid = UUID.randomUUID();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

            assertThrows(IllegalArgumentException.class, () -> {
                new DurableHandleReconnect(new byte[8]); // Wrong length
            });
    
            assertThrows(IllegalArgumentException.class, () -> {
                new DurableHandleReconnect(new byte[20]); // Wrong length
            });
        }
    
        @Test
        public void testHandleType() {
            assertEquals(0, HandleType.NONE.getValue());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. guava/pom.xml

              </execution>
            </executions>
            <configuration>
              <instructions>
                <!-- Silence a warning that claims that META-INF/versions/9/... is the "wrong directory" for our classes. -->
                <_fixupmessages>^Classes found in the wrong directory: .*</_fixupmessages>
                <Export-Package>
                  !com.google.common.base.internal,
                  !com.google.common.util.concurrent.internal,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jun 06 21:05:32 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            byte[] wrongSizeBuffer = new byte[100]; // Wrong size
            byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
            // When/Then - Should handle invalid buffers gracefully
            assertDoesNotThrow(() -> {
                BufferCache.releaseBuffer(nullBuffer); // Should ignore null
                BufferCache.releaseBuffer(wrongSizeBuffer); // Should ignore wrong size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

                  // we reached EOF
                  return new String(buffer, 0, bufIndex);
                }
                // otherwise we got the size wrong.  This can happen if the size changes between when
                // we called sizeIfKnown and when we started reading the file (or I guess if
                // maxCharsPerByte is wrong)
                // Fallback to an incremental approach
                StringBuilder builder = new StringBuilder(bufIndex + 32);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

         *
         * @throws IOException if an I/O error occurs
         */
        @Test
        void testConstructorWithMissingApplicationTag() throws IOException {
            // Create inner content with OID and magic bytes but wrong tag after
            ByteArrayOutputStream innerContent = new ByteArrayOutputStream();
            ASN1ObjectIdentifier kerberosOid = new ASN1ObjectIdentifier(KerberosConstants.KERBEROS_OID);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multiset.java

       *
       * <p>This method refines {@link Collection#remove} to further specify that it <b>may not</b>
       * throw an exception in response to {@code element} being null or of the wrong type.
       *
       * <p>To both remove the element and obtain the previous count of that element, use {@link
       * #remove(Object, int) remove}{@code (element, 1)} instead.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 19.5K bytes
    - Viewed (0)
Back to top