Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 660 for handling (0.15 seconds)

  1. src/main/java/org/codelibs/fess/app/service/ElevateWordService.java

            } catch (final IOException e) {
                logger.warn("Failed to write a suggest elevate word.", e);
            }
        }
    
        /**
         * Safely retrieves a value from a list at the specified index, handling bounds checking
         * and cleaning up quoted strings.
         *
         * @param list the list to retrieve the value from
         * @param index the index of the value to retrieve
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserEdgeCaseTest.java

    import org.codelibs.opensearch.runner.OpenSearchRunner;
    import org.junit.AfterClass;
    import org.junit.BeforeClass;
    import org.junit.Test;
    
    /**
     * Edge case tests for DefaultContentsParser.
     * Tests boundary conditions, null handling, and error scenarios.
     */
    public class DefaultContentsParserEdgeCaseTest {
        static Suggester suggester;
        static OpenSearchRunner runner;
        static SuggestAnalyzer analyzer;
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/io/FileUtil.java

    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.net.URLUtil;
    import org.codelibs.core.nio.ChannelUtil;
    import org.codelibs.core.timer.TimeoutManager;
    
    /**
     * Utility class for handling {@link File}.
     * <p>
     * <strong>SECURITY NOTE:</strong> When accepting file paths from untrusted sources,
     * always validate them using {@link #isPathSafe(Path, Path)} to prevent path traversal attacks.
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                // Then: Should return binding's string representation
                assertEquals("mockBindingString", result);
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Handling")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle null binding toString")
            void testToStringWithNullBinding() {
                // Given: Handle with null binding
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            // Note: bytesPerSect is read as Int2 but 4 bytes are consumed (padding)
            assertEquals(20, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test capacity calculation overflow handling")
        void testCapacityCalculationOverflow() throws SMBProtocolDecodingException {
            // Prepare test data that might cause overflow in naive implementations
            byte[] buffer = new byte[22];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                    assertNotNull(context);
                    assertTrue(context.getContextType() > 0);
                }
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Handling")
        class EdgeCasesTest {
    
            @Test
            @DisplayName("Should handle maximum size arrays")
            void testMaximumSizeArrays() throws SMBProtocolDecodingException {
                // Arrange
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/io/ResourceUtil.java

    import org.codelibs.core.exception.ResourceNotFoundRuntimeException;
    import org.codelibs.core.jar.JarFileUtil;
    import org.codelibs.core.net.URLUtil;
    
    /**
     * Utility class for resource handling.
     *
     * @author higa
     */
    public abstract class ResourceUtil {
    
        /**
         * Do not instantiate.
         */
        protected ResourceUtil() {
        }
    
        /**
         * Returns the resource path.
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/site/apt/index.apt

      Notice that the 5 URLs from the model (<<<project.url>>>, <<<project.scm.connection>>>, <<<project.scm.developerConnection>>>,
      <<<project.scm.url>>> and <<<project.distributionManagement.site.url>>>) have a special inheritance handling:
    
      ** if not configured in current model, the inherited value is the parent's one with current artifact id appended,
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 03 08:42:52 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

       * offset that is greater than the current length of the source, a stream is then opened to that
       * source, and finally additional bytes are appended to the source before the stream is read.
       *
       * <p>Without special handling, it's possible to have reads of the open stream start <i>before</i>
       * the offset at which the slice is supposed to start.
       */
      // TODO(cgdecker): Maybe add a test for this to ByteSourceTester
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            // Execute the method - should not throw exception
            assertDoesNotThrow(() -> transaction.writeParameterWordsWireFormat(dst, 0));
        }
    
        @Test
        @DisplayName("Test multiple setup count handling")
        void testMultipleSetupCount() {
            byte[] dst = new byte[256];
    
            // Set multiple setup words
            transaction.setSetupCount(3);
            transaction.setSetupWireFormatReturn(6); // 3 * 2 bytes
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
Back to Top