Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 531 - 540 of 2,822 for null (0.03 seconds)

  1. guava/src/com/google/common/collect/CollectCollectors.java

        private @Nullable EnumSet<E> set;
    
        void add(E e) {
          if (set == null) {
            set = EnumSet.of(e);
          } else {
            set.add(e);
          }
        }
    
        EnumSetAccumulator<E> combine(EnumSetAccumulator<E> other) {
          if (this.set == null) {
            return other;
          } else if (other.set == null) {
            return this;
          } else {
            this.set.addAll(other.set);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        private var bodyVar: MockResponseBody? = null
        private var socketHandlerVar: SocketHandler? = null
        private var webSocketListenerVar: WebSocketListener? = null
    
        public var body: MockResponseBody?
          get() = bodyVar
          private set(value) {
            bodyVar = value
            socketHandlerVar = null
            webSocketListenerVar = null
          }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  3. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody
            .Builder("123")
            .addPart("Quick".toRequestBody(null))
            .addPart("Brown".toRequestBody(null))
            .addPart("Fox".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyCoordinatesFactory.java

                    null,
                    dependency.getType()));
        }
    
        @Nonnull
        default DependencyCoordinates create(@Nonnull Session session, Plugin plugin) {
            // TODO: hard coded string
            return create(DependencyCoordinatesFactoryRequest.build(
                    session, plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion(), null, null, "maven-plugin"));
        }
    
        @Nonnull
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Aug 27 21:13:34 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  6. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

        @Test
        void testVersionlessManagedDependency() throws Exception {
            File pomFile = new File("src/test/resources/projects/versionless-managed-dependency.xml");
            MavenSession mavenSession = createMavenSession(null);
            ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest();
            configuration.setRepositorySession(mavenSession.getRepositorySession());
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

    import okio.ByteString.Companion.encodeUtf8
    import okio.IOException
    import okio.Source
    import okio.buffer
    
    class ResponseBodyTest {
      @Test
      fun sourceEmpty() {
        val mediaType = if (null == null) null else "any/thing; charset=${null}".toMediaType()
        val body = "".decodeHex().toResponseBody(mediaType)
        val source = body.source()
        assertThat(source.exhausted()).isTrue()
        assertThat(source.readUtf8()).isEqualTo("")
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingResult.java

            // Intentionally notNull because Super POM may not contain a modelId
            Objects.requireNonNull(modelId, "modelId cannot null");
    
            if (activeProfiles != null) {
                this.activePomProfiles.put(modelId, new ArrayList<>(activeProfiles));
            } else {
                this.activePomProfiles.remove(modelId);
            }
    
            return this;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

            this.lookup = requireNonNull(lookup, "lookup cannot be null");
            this.languageRegistry = requireNonNull(languageRegistry, "languageRegistry cannot be null");
            this.usedTypes = new ConcurrentHashMap<>();
            this.manager = requireNonNull(manager, "artifactHandlerManager cannot be null");
        }
    
        @Override
        public void onEvent(Object event) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed May 14 04:47:58 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmConstituent.java

         *
         * @return The group id, never {@code null}.
         */
        String getGroupId();
    
        /**
         * Gets the artifact id of the constituent's artifact.
         *
         * @return The artifact id, never {@code null}.
         */
        String getArtifactId();
    
        /**
         * Gets the type of the constituent's artifact.
         *
         * @return The type, never {@code null}.
         */
        String getType();
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.9K bytes
    - Click Count (0)
Back to Top