Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 985 for SuppressWarnings (2.39 sec)

  1. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

        public void testConstructorWithNull() throws Exception {
            new EnumerationIterator<String>((Enumeration<String>) null);
        }
    
        /**
         * @throws Exception
         */
        @SuppressWarnings("unused")
        @Test
        public void testIterable() throws Exception {
            final Vector<String> vector = new Vector<String>();
            vector.add("a");
            vector.add("b");
            int count = 0;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

      }
    
      private static Runnable runnableThrowing(RuntimeException e) {
        return new Runnable() {
          @Override
          public void run() {
            throw e;
          }
        };
      }
    
      @SuppressWarnings("serial")
      private static class SampleCheckedException extends Exception {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

                    () -> assertTrue(OID_PATTERN.matcher(SpnegoConstants.NTLMSSP_MECHANISM).matches(), "Invalid OID: NTLMSSP_MECHANISM"));
        }
    
        @Test
        @DisplayName("Interface cannot be instantiated")
        @SuppressWarnings("deprecation") // Using Class#newInstance for explicit InstantiationException
        void cannotInstantiateInterface() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetReadsTester<E> extends AbstractMultisetTester<E> {
    
      @CollectionSize.Require(absent = ZERO)
      public void testElementSet_contains() {
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    @NullMarked
    public class MultisetIteratorTester<E extends @Nullable Object> extends AbstractMultisetTester<E> {
      @CollectionFeature.Require({SUPPORTS_ITERATOR_REMOVE, KNOWN_ORDER})
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetReadsTester<E> extends AbstractMultisetTester<E> {
    
      @CollectionSize.Require(absent = ZERO)
      public void testElementSet_contains() {
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MapGetOrDefaultTester<K, V> extends AbstractMapTester<K, V> {
      @CollectionSize.Require(absent = ZERO)
      public void testGetOrDefault_present() {
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractSortedMultiset.java

    @GwtCompatible
    abstract class AbstractSortedMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
        implements SortedMultiset<E> {
      private final Comparator<? super E> comparator;
    
      // needed for serialization
      @SuppressWarnings("unchecked")
      AbstractSortedMultiset() {
        this((Comparator) Ordering.natural());
      }
    
      AbstractSortedMultiset(Comparator<? super E> comparator) {
        this.comparator = checkNotNull(comparator);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      private static final char GREATEST = Character.MAX_VALUE;
    
      private static final char[] VALUES = {LEAST, 'a', '\u00e0', '\udcaa', GREATEST};
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (char value : VALUES) {
          assertThat(Chars.hashCode(value)).isEqualTo(Character.hashCode(value));
        }
      }
    
      public void testCheckedCast() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                }
    
                return connectHost(loc, loc.getServerWithDfs());
            }
    
        }
    
        /**
         * @return whether we have a valid tree connection
         */
        @SuppressWarnings("resource")
        public synchronized boolean isConnected() {
            final SmbTreeImpl t = getTreeInternal();
            return t != null && t.isConnected();
        }
    
        /**
         *
         * @param loc
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
Back to top