Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3581 - 3590 of 4,689 for nulls (0.03 seconds)

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

            // Second close should not throw
            assertDoesNotThrow(managed::close);
        }
    
        @Test
        @DisplayName("Test null resource registration throws exception")
        void testNullResourceRegistration() {
            assertThrows(IllegalArgumentException.class, () -> resourceManager.registerResource(null));
        }
    
        @Test
        @DisplayName("Test configuration updates")
        void testConfigurationUpdates() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            response.useUnicode = false;
            String expected = "test";
            // Simulate OEM encoding with a null terminator
            byte[] src = (expected + "\0").getBytes(StandardCharsets.UTF_8);
            String result = response.readString(src, 0, src.length);
            // The method should remove the null terminator
            assertEquals(expected, result.substring(0, expected.length()));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            assertSame(session, result);
            verify(handle).getSession();
        }
    
        @Test
        @DisplayName("getSession(): may return null and should be observed as such")
        void getSession_returnsNull() {
            // Arrange
            when(handle.getSession()).thenReturn(null);
    
            // Act
            SmbSession result = handle.getSession();
    
            // Assert
            assertNull(result);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingMissingRule.java

                if (!isIncubating((JApiHasAnnotations) member) && !isInject((JApiHasAnnotations) member)) {
                    return violationError(member);
                }
            }
            return null;
        }
    
        private Violation violationError(JApiCompatibility member) {
            return acceptOrReject(member, Violation.error(member, "Is not annotated with @Incubating"));
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 1.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java

        }
    
        /**
         * A method that wraps the exception handling of {@link JarURLConnection#getJarFile()}.
         *
         * @param conn
         *            {@link JarURLConnection}. Must not be {@literal null}.
         * @return {@link JarFile}
         */
        public static JarFile getJarFile(final JarURLConnection conn) {
            assertArgumentNotNull("conn", conn);
    
            try {
                return conn.getJarFile();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

            assertTrue(customFilter.accept(file), "Wildcard should be ignored in accept");
        }
    
        @Test
        public void testAcceptHandlesNullFile() {
            assertThrows(NullPointerException.class, () -> filter.accept(null));
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/toolchain/Toolchain.java

         */
        String getType();
    
        /**
         * Gets the platform tool executable.
         *
         * @param toolName the tool platform independent tool name.
         * @return file representing the tool executable, or null if the tool can not be found
         */
        String findTool(String toolName);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Feb 12 13:13:28 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainFactory.java

         **/
        ToolchainPrivate createToolchain(ToolchainModel model) throws MisconfiguredToolchainException;
    
        /**
         * Returns the default instance of the particular type of toolchain, can return <code>null</code>
         * if not applicable.
         * TODO keep around??
         **/
        ToolchainPrivate createDefaultToolchain();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Feb 12 13:13:28 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/TeamcityCIDetector.java

        private static final String TEAMCITY_VERSION = "TEAMCITY_VERSION";
    
        @Override
        public Optional<CIInfo> detectCI() {
            String ciEnv = System.getenv(TEAMCITY_VERSION);
            if (ciEnv != null && !ciEnv.trim().isEmpty()) {
                return Optional.of(new CIInfo() {
                    @Override
                    public String name() {
                        return NAME;
                    }
                });
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Apr 13 18:50:07 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/suggest/index/contents/querylog/QueryLog.java

        private final String q;
        private final String fq;
    
        /**
         * Constructor for QueryLog.
         * @param queryString The query string.
         * @param filterQueryString The filter query string (can be null).
         */
        public QueryLog(final String queryString, @Nullable final String filterQueryString) {
            q = queryString;
            fq = filterQueryString;
        }
    
        /**
         * Returns the query string.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 1.5K bytes
    - Click Count (0)
Back to Top