Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for createLeakyResource (0.12 sec)

  1. src/test/java/jcifs/util/ResourceManagerTest.java

        @Timeout(value = 5, unit = TimeUnit.SECONDS)
        void testLeakDetection() throws InterruptedException {
            // Create resource that will be garbage collected without closing
            createLeakyResource();
    
            // Force garbage collection
            System.gc();
            Thread.sleep(200);
    
            // Check for leaks
            resourceManager.checkForLeaks();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top