Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1581 - 1590 of 4,653 for nullif (0.08 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

        int expectedHashCode = 0;
        for (E element : elements) {
          expectedHashCode += (element == null) ? 0 : element.hashCode();
        }
    
        elements.add(null);
        collection = getSubjectGenerator().create(elements.toArray());
        assertEquals(
            "A Set's hashCode() should be the sum of those of its elements (with "
                + "a null element counting as having a hash of zero).",
            expectedHashCode,
            getSet().hashCode());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/ValidateChangelogEntryTask.java

                    if (entry.getPr() == null) {
                        throw new GradleException(
                            "[" + path + "] must provide a [pr] number (only 'known-issue' and " + "'security' entries can omit this"
                        );
                    }
    
                    if (entry.getArea() == null) {
                        throw new GradleException(
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 14:45:41 GMT 2021
    - 3.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/index/contents/querylog/QueryLogTest.java

            QueryLog queryLog = new QueryLog("test query", null);
    
            assertNotNull(queryLog);
            assertEquals("test query", queryLog.getQueryString());
            assertNull(queryLog.getFilterQueryString());
        }
    
        @Test
        public void test_getQueryString() throws Exception {
            QueryLog queryLog = new QueryLog("search term", null);
    
            assertEquals("search term", queryLog.getQueryString());
        }
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Thu Nov 13 00:40:54 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        notEqualObject1 = new ValidTestObject(0, 2);
      }
    
      /** Test null reference yields error */
      public void testAddNullReference() {
        assertThrows(NullPointerException.class, () -> equalsTester.addEqualityGroup((Object) null));
      }
    
      /** Test equalObjects after adding multiple instances at once with a null */
      public void testAddTwoEqualObjectsAtOnceWithNull() {
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            objAttr.decode(mockNdrBuffer);
    
            assertEquals(100, objAttr.length);
            assertNull(objAttr.root_directory); // null because _root_directoryp was 0
            assertNull(objAttr.object_name); // Should be null when _object_namep is 0
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 60.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       */
      public void add(Runnable runnable, Executor executor) {
        // Fail fast on a null. We throw NPE here because the contract of Executor states that it throws
        // NPE on null listener, so we propagate that contract up into the add method as well.
        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
        // Lock while we check state. We must maintain the lock while adding the new pair so that
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 10 11:51:21 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

        }
    
        @Test
        public void test_constructor_withNullComponentName() {
            // Test constructor with null component name
            ContainerNotAvailableException exception = new ContainerNotAvailableException((String) null);
    
            assertEquals("null is not available.", exception.getMessage());
            assertNull(exception.getCause());
            assertNull(exception.getComponentName());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/CacheLoader.java

       *
       * @param key the non-null key whose value should be loaded
       * @param oldValue the non-null old value corresponding to {@code key}
       * @return the future new value associated with {@code key}; <b>must not be null, must not return
       *     null</b>
       * @throws Exception if unable to reload the result
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructor_withNullTypeAndMessage() {
            // Test constructor with both null type and message
            String type = null;
            String message = null;
            InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message);
    
            assertNull(exception.getType());
            assertNull(exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java

                            parent.getVersion());
                }
    
                if (versionRangeResult.getVersionConstraint() != null
                        && versionRangeResult.getVersionConstraint().getRange() != null
                        && versionRangeResult.getVersionConstraint().getRange().getUpperBound() == null) {
                    // Message below is checked for in the MNG-2199 core IT.
                    throw new UnresolvableModelException(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Apr 14 13:42:17 GMT 2025
    - 10.8K bytes
    - Click Count (0)
Back to Top