Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for NPE (0.05 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      public void testSortedCopyOf_natural_containsNull() {
        Collection<@Nullable Integer> c = MinimalCollection.of(1, 3, null, 2);
        try {
          ImmutableList.sortedCopyOf((Collection<Integer>) c);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testSortedCopyOf() {
        Collection<String> c = MinimalCollection.of("a", "b", "A", "c");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/RetryConditions.groovy

                println "Retrying cross version test because of <1.3 daemon connection issue"
                return cleanProjectDir(specification)
            }
    
            // this is cause by a bug in Gradle <1.8, where a NPE is thrown when DaemonInfo is removed from the daemon registry by another process
            if (targetDistVersion < GradleVersion.version("1.8") &&
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/functional/src/main/java/org/gradle/internal/Try.java

        //  it is explicitly spelled, e.g.
        //  Try<String> t = Try.successful("some")
        //  t.get().length()  // IDEA produces false positive "potential NPE" warning when JB annotations are used.
        //  Kotlin understands it correctly, though. JSpecify annotations of version 0.3 seem to work well too.
        private Try() {
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. pkg/controller/deployment/progress_test.go

    			conditionType:   apps.DeploymentProgressing,
    			conditionStatus: v1.ConditionTrue,
    			conditionReason: util.NewRSAvailableReason,
    		},
    		{
    			name:            "DeploymentComplete: defend against NPE when newRS=nil",
    			d:               currentDeployment(&pds, 0, 3, 3, 3, []apps.DeploymentCondition{replicaSetUpdated}),
    			allRSs:          []*apps.ReplicaSet{newRSWithAvailable("foo", 0, 0, 0)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
        double[] a = null;
        assertThrows(NullPointerException.class, () -> new AtomicDoubleArray(a));
      }
    
      /** constructor with array is of same size and has all elements */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. ChangeLog.md

    - [`KT-67144`](https://youtrack.jetbrains.com/issue/KT-67144) K2: potential NPE when assigning to unstable vars
    - [`KT-66971`](https://youtrack.jetbrains.com/issue/KT-66971) K2: missing SMARTCAST_IMPOSSIBLE on open val declared in another module
    - [`KT-66904`](https://youtrack.jetbrains.com/issue/KT-66904) K2: possible NPE when reassigning captured variables
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:14:23 UTC 2024
    - 292.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

        if (ownerType == null) {
          return newParameterizedType(rawType, arguments);
        }
        // ParameterizedTypeImpl constructor already checks, but we want to throw NPE before IAE
        checkNotNull(arguments);
        checkArgument(rawType.getEnclosingClass() != null, "Owner type for unenclosed %s", rawType);
        return new ParameterizedTypeImpl(ownerType, rawType, arguments);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        // Pretend the comparator can compare anything. If it turns out it can't
        // compare a and b, we should get a CCE or NPE on the subsequent line. Only methods
        // that are spec'd to throw CCE and NPE should call this.
        @SuppressWarnings({"unchecked", "nullness"})
        Comparator<@Nullable Object> unsafeComparator = (Comparator<@Nullable Object>) comparator;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedSet.java

        // Pretend the comparator can compare anything. If it turns out it can't
        // compare a and b, we should get a CCE or NPE on the subsequent line. Only methods
        // that are spec'd to throw CCE and NPE should call this.
        @SuppressWarnings({"unchecked", "nullness"})
        Comparator<@Nullable Object> unsafeComparator = (Comparator<@Nullable Object>) comparator;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java

            return delegate.hashCode();
        }
    
        @Nullable
        private Object getAndReportAccess(@Nullable Object key) {
            Object value = delegate.get(key);
            // delegate.get(null) actually throws NPE.
            assert key != null;
            reportAccess(key, value);
            return value;
        }
    
        private void reportAccess(Object key, @Nullable Object value) {
            listener.onAccess(key, value);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top