Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for shorter (0.96 sec)

  1. src/test/java/jcifs/smb/SecurityBlobTest.java

        }
    
        // Demonstrates observed equals() asymmetry when this is shorter than argument
        @Test
        @DisplayName("equals: this shorter but same prefix -> true (observed behavior)")
        void equals_thisShorterSamePrefix_true_dueToImplementation() {
            // Arrange: left shorter than right but with identical prefix
            SecurityBlob shorter = new SecurityBlob(new byte[] { 1, 2 });
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            assertFalse(registration.isExpired(60000));
    
            // Wait a bit to ensure some time has passed
            Thread.sleep(50);
            // Should be expired with very short timeout (shorter than sleep time)
            assertTrue(registration.isExpired(10));
        }
    
        @Test
        void testStateTransitions() {
            assertEquals(WitnessRegistrationState.REGISTERING, registration.getState());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/UniAddress.java

                        dots++;
                        i++;
                    }
                }
            }
    
            return false;
        }
    
        /**
         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
         * import javax.naming.*;
         * import javax.naming.directory.*;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/ResourceManagerTest.java

     */
    public class ResourceManagerTest {
    
        private ResourceManager resourceManager;
    
        @BeforeEach
        void setUp() {
            resourceManager = ResourceManager.getInstance();
            // Configure with shorter intervals for testing
            resourceManager.configure(1000, 100, true, true);
        }
    
        /**
         * Test resource for tracking
         */
        static class TestResource implements AutoCloseable {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

            // Arrange
            short level = 2;
    
            // Act
            queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    
            // Assert
            assertSame(mockNdrObject, queryPolicy.info);
        }
    
        @ParameterizedTest
        @ValueSource(shorts = { 0, 1, 2, 3, 5, 10, Short.MAX_VALUE, Short.MIN_VALUE })
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

                if (pattern != null) {
                    return Short.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (short) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (short) 1 : (short) 0;
            } else {
                return toShort(o.toString());
            }
        }
    
        private static Short toShort(final String s) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ingest/IngestFactory.java

    import org.apache.logging.log4j.Logger;
    
    /**
     * Factory class for managing and organizing document ingesters.
     * The factory maintains a sorted collection of ingesters based on their priority
     * and provides methods to add new ingesters and retrieve the current collection.
     *
     * Ingesters are automatically sorted by priority, with lower numbers having higher priority.
     */
    public class IngestFactory {
        /** Logger instance for this class */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/PacUnicodeString.java

         */
        public PacUnicodeString(final short length, final short maxLength, final int pointer) {
            this.length = length;
            this.maxLength = maxLength;
            this.pointer = pointer;
        }
    
        /**
         * Gets the actual length of the string in bytes.
         *
         * @return the string length
         */
        public short getLength() {
            return this.length;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top