Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 46 for Suppression (0.05 seconds)

  1. guava-tests/test/com/google/common/io/CloserTest.java

       */
      private void assertSuppressed(Suppression... expected) {
        assertEquals(ImmutableList.copyOf(expected), suppressor.suppressions);
      }
    
      // TODO(cpovirk): Just use addSuppressed+getSuppressed now that we can rely on it.
      /** Suppressor that records suppressions. */
      private static class TestSuppressor implements Closer.Suppressor {
    
        private final List<Suppression> suppressions = new ArrayList<>();
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/CloserTest.java

       */
      private void assertSuppressed(Suppression... expected) {
        assertEquals(ImmutableList.copyOf(expected), suppressor.suppressions);
      }
    
      // TODO(cpovirk): Just use addSuppressed+getSuppressed now that we can rely on it.
      /** Suppressor that records suppressions. */
      private static class TestSuppressor implements Closer.Suppressor {
    
        private final List<Suppression> suppressions = new ArrayList<>();
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            // Test protected constructor with suppression enabled
            String message = "Test with suppression";
            TestFessSystemException exception = new TestFessSystemException(message, true, true);
    
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
    
            // Test that suppression is enabled
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

        @Test
        public void test_suppressionAndStackTrace() {
            // Test that suppression and stack trace are disabled (as per constructor)
            String parentUrl = "http://example.com/parent";
            String url = "http://example.com/child";
            ContentNotFoundException exception = new ContentNotFoundException(parentUrl, url);
    
            // Verify that suppression is disabled
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/exception/FessSystemException.java

            super(cause);
        }
    
        /**
         * Constructs a new FessSystemException with the specified detail message and suppression settings.
         *
         * @param message the detail message describing the exception
         * @param enableSuppression whether suppression is enabled or disabled
         * @param writableStackTrace whether the stack trace should be writable
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/NullnessCasts.java

       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
       * or extract a variable, and put the suppression on that. However, a local variable typically
       * doesn't work: Because nullness analyses typically infer the nullness of local variables,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 13 20:49:47 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/NullnessCasts.java

       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
       * or extract a variable, and put the suppression on that. However, a local variable typically
       * doesn't work: Because nullness analyses typically infer the nullness of local variables,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 13 20:49:47 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

       * insists upon doing. It then runs the test, which behaves exactly like this package's existing
       * PackageSanityTests. (The test would run on the JVM, too, if not for the suppression below, and
       * that would be a problem because it violates small-test rules. Note that we strip the
       * suppression externally, but it's OK because we don't enforce test-size rules there.)
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 02:48:50 GMT 2024
    - 5.4K bytes
    - Click Count (0)
  9. android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

       * insists upon doing. It then runs the test, which behaves exactly like this package's existing
       * PackageSanityTests. (The test would run on the JVM, too, if not for the suppression below, and
       * that would be a problem because it violates small-test rules. Note that we strip the
       * suppression externally, but it's OK because we don't enforce test-size rules there.)
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 02:48:50 GMT 2024
    - 5.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/base/NullnessCasts.java

       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
       * or extract a variable, and put the suppression on that. However, a local variable typically
       * doesn't work: Because nullness analyses typically infer the nullness of local variables,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 13 20:49:47 GMT 2025
    - 3.3K bytes
    - Click Count (0)
Back to Top