Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for returnsNull (0.35 sec)

  1. testing/architecture-test/src/test/java/org/gradlebuild/WrongNullable.java

     * limitations under the License.
     */
    
    package org.gradlebuild;
    
    public abstract class WrongNullable {
        abstract @org.jetbrains.annotations.Nullable String returnsNull();
    
        abstract void acceptsNull(@org.jetbrains.annotations.Nullable String s);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 832 bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

                    }));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testComputeIfAbsent_functionReturnsNullNotInserted() {
        assertNull(
            "computeIfAbsent(absent, returnsNull) should return null",
            getMap()
                .computeIfAbsent(
                    k3(),
                    k -> {
                      assertEquals(k3(), k);
                      return null;
                    }));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 6.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfPresent_functionReturnsNull() {
        assertNull(
            "computeIfPresent(present, returnsNull) should return null",
            getMap()
                .computeIfPresent(
                    k0(),
                    (k, v) -> {
                      assertEquals(k0(), k);
                      assertEquals(v0(), v);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 5.8K bytes
    - Viewed (0)
  4. testing/architecture-test/src/test/java/org/gradle/architecture/test/ArchUnitFixtureTest.java

            assertThat(descriptions).containsExactlyInAnyOrder(
                    "org.gradlebuild.WrongNullable.returnsNull() is using forbidden Nullable annotations: org.jetbrains.annotations.Nullable",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        static FactoryMethodReturnsNullButNotAnnotated returnsNull() {
          return null;
        }
      }
    
      static class FactoryMethodReturnsNullAndAnnotated {
        private FactoryMethodReturnsNullAndAnnotated() {}
    
        public static @Nullable FactoryMethodReturnsNullAndAnnotated returnsNull() {
          return null;
        }
      }
    
      static class FactoryMethodAcceptsNull {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top