- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateString (0.06 sec)
-
src/test/java/jcifs/util/ServerResponseValidatorTest.java
assertThrows(SmbException.class, () -> { validator.validateString("test\u0001string", 100, "test"); }); } @Test public void testStringWithAllowedWhitespace() throws Exception { validator.validateString("test\tstring", 100, "test"); validator.validateString("test\r\nstring", 100, "test"); // Should pass without exception } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
* @param str string to validate * @param maxLength maximum allowed length * @param fieldName field name for error messages * @throws SmbException if string is invalid */ public void validateString(String str, int maxLength, String fieldName) throws SmbException { totalValidations.incrementAndGet(); if (str == null) { return; // Null strings are allowed }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0)