Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,138 for were (0.02 sec)

  1. guava/src/com/google/common/base/SneakyThrows.java

    /** Static utility method for unchecked throwing of any {@link Throwable}. */
    @GwtCompatible
    final class SneakyThrows<T extends Throwable> {
      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 03 21:52:39 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            int expected = original & 0xFF;
            NdrShort ns = new NdrShort(original);
            buf.reset();
            ns.encode(buf); // should not throw
    
            // After encoding, check how many bytes were used
            int bytesUsed = buf.getIndex();
            // Should be 2 bytes for the short value (alignment may add padding)
            assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Create a buffer large enough to hold the read bytes
            byte[] buffer = new byte[6];
            int bytesRead = packet.readTrailerWireFormat(bais, buffer, 0);
    
            // Verify that 6 bytes were read, which is the expected length.
            assertEquals(6, bytesRead);
        }
    
        @Test
        void readTrailerWireFormatShouldThrowIOExceptionOnUnexpectedEOF() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingIterator.java

     * default} methods. Specifically, it forwards calls only for methods that existed <a
     * href="https://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html">before {@code default}
     * methods were introduced</a>. For newer methods, like {@code forEachRemaining}, it inherits their
     * default implementations. When those implementations invoke methods, they invoke methods on the
     * {@code ForwardingIterator}.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMap.java

         *
         * @throws IllegalArgumentException if duplicate keys were added
         */
        public ImmutableMap<K, V> build() {
          return buildOrThrow();
        }
    
        /**
         * Returns a newly-created immutable map, or throws an exception if any key was added more than
         * once. The iteration order of the returned map is the order in which entries were inserted
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            fail(
                "contents were not equal and in the same order: "
                    + "expected = "
                    + expected
                    + ", actual = "
                    + actual);
          }
        }
    
        if (expectedIter.hasNext() || actualIter.hasNext()) {
          // actual either had too few or too many elements
          fail(
              "contents were not equal and in the same order: "
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

            String a = "1-0.alpha";
            String b = "1-0.beta";
            String c = "1";
    
            checkVersionsOrder(a, c); // Now a < c, but before MNG-6964 they were equal
            checkVersionsOrder(b, c); // Now b < c, but before MNG-6964 they were equal
            checkVersionsOrder(a, b); // Should still be true
        }
    
        @Test
        void testLocaleIndependent() {
            Locale orig = Locale.getDefault();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java

            assertEquals("field1:value1", facetQueryView.getQueryMap().get("label1"));
            assertEquals("field2:value2", facetQueryView.getQueryMap().get("label2"));
    
            // Check that queries were added to FacetInfo
            assertEquals(2, testFacetInfo.getAddedQueries().size());
            assertTrue(testFacetInfo.getAddedQueries().contains("field1:value1"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MoreCollectors.java

      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> Collector<T, ?, T> onlyElement() {
        return (Collector) ONLY_ELEMENT;
      }
    
      /**
       * This atrocity is here to let us report several of the elements in the stream if there were more
       * than one, not just two.
       */
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      private static final class ToOptionalState {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/MultiIterator.java

    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * An {@link Iterator} that iterates over multiple {@link Iterator}s as if they were a single {@link Iterator}.
     * <p>
     * Usage example:
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.collection.MultiIterator.*;
     *
     * List&lt;String&gt; list = ...;
     * Set&lt;String&gt; set = ...;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top