Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 429 for safety (0.03 sec)

  1. guava/src/com/google/common/escape/Escaper.java

     * string {@code "Foo<Bar>"}.
     *
     * <p>An {@code Escaper} instance is required to be stateless, and safe when used concurrently by
     * multiple threads.
     *
     * <p>Because, in general, escaping operates on the code points of a string and not on its
     * individual {@code char} values, it is not safe to assume that {@code escape(s)} is equivalent to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/RequestParamTest.java

        @NullSource
        @DisplayName("valueOf(null) throws NullPointerException")
        void valueOfRejectsNull(String input) {
            assertThrows(NullPointerException.class, () -> RequestParam.valueOf(input));
        }
    
        // Sanity: Enum.valueOf(Class, String) behaves identically to RequestParam.valueOf(String)
        @Test
        @DisplayName("Enum.valueOf mirrors RequestParam.valueOf for valid names")
        void enumValueOfParity() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/InputValidator.java

            }
        }
    
        /**
         * Sanitizes a string for safe logging (removes control characters)
         *
         * @param input the string to sanitize
         * @return sanitized string safe for logging
         */
        public static String sanitizeForLogging(String input) {
            if (input == null) {
                return "null";
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<String, @Nullable Integer> function = Functions.forMap(map, null);
    
        assertEquals((Integer) 1, function.apply("One"));
        assertNull(function.apply("Two"));
    
        // check basic sanity of equals and hashCode
        new EqualsTester()
            .addEqualityGroup(function)
            .addEqualityGroup(Functions.forMap(map, 1))
            .testEquals();
      }
    
      @J2ktIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

                return unknown;
              }
            };
        EscaperAsserts.assertBasic(replacingEscaper);
    
        // Replacements are applied first regardless of whether the character is in
        // the safe range or not ('&' is a safe char while '\t' and '\n' are not).
        assertThat(replacingEscaper.escape("\tFish &\0 Chips\r\n"))
            .isEqualTo("<tab>Fish <and>? Chips?<newline>");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 15:41:04 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

     *
     * <p>The ticker can be configured so that the time is incremented whenever {@link #read} is called:
     * see {@link #setAutoIncrementStep}.
     *
     * <p>This class is thread-safe.
     *
     * @author Jige Yu
     * @since 10.0
     */
    @NullMarked
    @GwtCompatible
    public class FakeTicker extends Ticker {
    
      private final AtomicLong nanos = new AtomicLong();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

       * write.
       *
       * 2. visibility of the writes to an afterDone() call triggered by cancel():
       *
       * Since these fields are non-final that means that TimeoutFuture is not being 'safely published',
       * thus a motivated caller may be able to expose the reference to another thread that would then
       * call cancel() and be unable to cancel the delegate.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/DocumentUtil.java

        }
    
        /**
         * Encodes a URL by encoding non-URL-safe characters.
         * Uses the request's character encoding if available, otherwise defaults to UTF-8.
         * Only encodes characters that are not considered URL-safe according to CharUtil.
         *
         * @param url the URL to encode
         * @return the encoded URL with non-URL-safe characters properly encoded
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessClient.java

            String resourceName = notification.getResourceName();
            String shareName = registration.getShareName();
    
            // Match by share name or server address, safely handling nulls
            boolean shareMatch = resourceName != null && shareName != null && resourceName.equalsIgnoreCase(shareName);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

        assertUnescaped(e, '~');
        assertUnescaped(e, ':');
        assertUnescaped(e, '@');
    
        // Don't use plus for spaces
        assertEscaping(e, "%20", ' ');
    
        assertEquals("safe%20with%20spaces", e.escape("safe with spaces"));
        assertEquals("******@****.***", e.escape("******@****.***"));
      }
    
      private UrlEscaperTesting() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top