Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1151 - 1160 of 3,432 for NULL (0.02 sec)

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

            // Test with a null source array
            ByteEncodable encodable = new ByteEncodable(null, 0, 0);
            byte[] dest = new byte[1];
    
            // Expect NullPointerException from System.arraycopy
            assertThrows(NullPointerException.class, () -> {
                encodable.encode(dest, 0);
            }, "Should throw NullPointerException if source array is null");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

         *
         * @param o
         *            The object to convert
         * @return The converted {@link Boolean}
         */
        public static Boolean toBoolean(final Object o) {
            return switch (o) {
            case null -> null;
            case Boolean b -> b;
            case Number n -> n.intValue() != 0;
            case String s -> switch (s.toLowerCase()) {
            case "true" -> Boolean.TRUE;
            case "false", "0" -> Boolean.FALSE;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/log/bsentity/BsClickLog.java

            Map<String, Object> sourceMap = new HashMap<>();
            if (urlId != null) {
                addFieldToSource(sourceMap, "urlId", urlId);
            }
            if (docId != null) {
                addFieldToSource(sourceMap, "docId", docId);
            }
            if (order != null) {
                addFieldToSource(sourceMap, "order", order);
            }
            if (queryId != null) {
                addFieldToSource(sourceMap, "queryId", queryId);
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SambaHelper.java

                }
            }
            final Integer id = fessConfig.getAvailableSmbSidType(type);
            if (id != null) {
                return createSearchRole(id, sid.getAccountName());
            }
            if (logger.isDebugEnabled()) {
                logger.debug("Ignored SID: {} {}", type, sid);
            }
            return null;
        }
    
        /**
         * Gets the account ID from a SID.
         * @param sid The SID.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

        }
    
        @Override
        public void tearDown() throws Exception {
            crawlerEngineClient = null;
            super.tearDown();
        }
    
        // Test constructor
        public void test_constructor() {
            // Test that constructor creates a non-null instance
            assertNotNull(crawlerEngineClient);
        }
    
        // Test inheritance
        public void test_inheritance() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java

        }
    
        private String emptify(String string) {
            return (string != null) ? string : "";
        }
    
        @Override
        public File getFile() {
            return null;
        }
    
        @Override
        public MetadataBridge setFile(File file) {
            return this;
        }
    
        @Override
        public Path getPath() {
            return null;
        }
    
        @Override
        public Nature getNature() {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(mockConfig, configField.get(request));
            }
    
            @Test
            @DisplayName("Should handle null configuration")
            void testConstructorWithNullConfig() {
                assertDoesNotThrow(() -> {
                    Smb2EchoRequest request = new Smb2EchoRequest(null);
                    assertNotNull(request);
                });
            }
        }
    
        @Nested
        @DisplayName("CreateResponse Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multiset.java

       *
       * @param element the element to add one occurrence of; may be null only if explicitly allowed by
       *     the implementation
       * @return {@code true} always, since this call is required to modify the multiset, unlike other
       *     {@link Collection} types
       * @throws NullPointerException if {@code element} is null and this implementation does not permit
       *     null elements
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

        void testDefaultConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException();
    
            // Then
            assertNull(exception.getMessage(), "Default constructor should have null message");
            assertNull(exception.getCause(), "Default constructor should have null cause");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/PatternFilenameFilter.java

      }
    
      /*
       * Our implementation works fine with a null `dir`. However, there's nothing in the documentation
       * of the supertype that suggests that implementations are expected to tolerate null. That said, I
       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
       * parameter as non-nullable (since passing null to a FilenameFilter is unsafe in general), but if
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.7K bytes
    - Viewed (1)
Back to top