Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for violations (0.06 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt

        OkHttpClient()
    
        assertThat(violations).hasSize(1)
        assertThat(violations[0].message).isEqualTo("newSSLContext")
      }
    
      @Test
      fun testNewCall() {
        Platform.resetForTests()
    
        val client = OkHttpClient()
    
        applyStrictMode()
    
        // Safe on main
        client.newCall(Request("https://google.com/robots.txt".toHttpUrl()))
    
        assertThat(violations).isEmpty()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

            assertFalse(violations.isEmpty());
            assertEquals(1, violations.size());
    
            ConstraintViolation<CustomMessageBean> violation = violations.iterator().next();
            assertEquals("Invalid cron expression format", violation.getMessage());
        }
    
        // Test annotation on method parameter
        public void test_annotationOnMethod() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Suppliers.java

        return new ExpiringMemoizingSupplier<>(delegate, toNanosSaturated(duration));
      }
    
      @VisibleForTesting
      @SuppressWarnings("GoodTime") // lots of violations
      static final class ExpiringMemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        private transient Object lock = new Object();
    
        final Supplier<T> delegate;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Suppliers.java

        return new ExpiringMemoizingSupplier<>(delegate, toNanosSaturated(duration));
      }
    
      @VisibleForTesting
      @SuppressWarnings("GoodTime") // lots of violations
      static final class ExpiringMemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        private transient Object lock = new Object();
    
        final Supplier<T> delegate;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. android/pom.xml

                  <!-- TODO(cpovirk): Enable NullArgumentForNonNullParameter for
                       prod code. It's disabled automatically for "test code"
                       (which is good: our tests have intentional violations), but
                       Error Prone doesn't know it's building test code unless we
                       pass -XepCompilingTestOnlyCode, and that argument needs to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  6. pom.xml

                  <!-- TODO(cpovirk): Enable NullArgumentForNonNullParameter for
                       prod code. It's disabled automatically for "test code"
                       (which is good: our tests have intentional violations), but
                       Error Prone doesn't know it's building test code unless we
                       pass -XepCompilingTestOnlyCode, and that argument needs to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            ),
          ).assertLogMatch(
            Regex(
              """callFailed: \S+(?:SSLProtocolException|SSLHandshakeException|TlsFatalAlert): .*(?:Unexpected handshake message: client_hello|Handshake message sequence violation, 1|Read error|Handshake failed|unexpected_message\(10\)).*""",
            ),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteArrayDataInput.java

     * array. If any method encounters the end of the array prematurely, it throws {@link
     * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation
     * of the supertype's contract, which specifies a checked exception.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public interface ByteArrayDataInput extends DataInput {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hashCodeB = HashCode.fromBytes(bytesB);
    
        // They aren't equal...
        assertFalse(hashCodeA.equals(hashCodeB));
    
        // But they still have the same Object#hashCode() value.
        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
      public void testRoundTripHashCodeUsingFromString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMaker.java

       *
       * <p><b>Warning:</b> when this method is used, the resulting map will use identity ({@code ==})
       * comparison to determine equality of keys, which is a technical violation of the {@link Map}
       * specification, and may not be what you expect.
       *
       * @throws IllegalStateException if the key strength was already set
       * @see WeakReference
       */
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top