Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 2,533 for nullif (0.04 seconds)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java

         */
        public String getModelId() {
            if (result == null) {
                return "";
            } else if (result.getEffectiveModel() != null) {
                return result.getEffectiveModel().getId();
            } else if (result.getRawModel() != null) {
                return result.getRawModel().getId();
            } else if (result.getFileModel() != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 21:57:56 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/MoreObjects.java

       *
       * @return {@code first} if it is non-null; otherwise {@code second} if it is non-null
       * @throws NullPointerException if both {@code first} and {@code second} are null
       * @since 18.0 (since 3.0 as {@code Objects.firstNonNull()}).
       */
      public static <T> T firstNonNull(@Nullable T first, @Nullable T second) {
        if (first != null) {
          return first;
        }
        if (second != null) {
          return second;
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

            if (stereotype == null) {
                stereotype = new DefaultType(dependency.getType(), Language.NONE, dependency.getType(), null, false);
            }
    
            boolean system = dependency.getSystemPath() != null
                    && !dependency.getSystemPath().isEmpty();
    
            Map<String, String> props = null;
            if (system) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Mar 20 22:29:18 GMT 2025
    - 6K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * The reason why this stream was closed, or null if it closed normally or has not yet been
       * closed.
       *
       * If there are multiple reasons to abnormally close this stream (such as both peers closing it
       * near-simultaneously) then this is the first reason known to this peer.
       */
      internal var errorCode: ErrorCode? = null
        get() = withLock { field }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 07 18:57:05 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/base/FunctionsTest.java

        assertEquals("correct", f.apply(new Object()));
        assertEquals("correct", f.apply(null));
    
        Function<@Nullable Object, @Nullable String> g = Functions.constant(null);
        assertEquals(null, g.apply(2));
        assertEquals(null, g.apply(null));
    
        new EqualsTester()
            .addEqualityGroup(f, Functions.constant("correct"))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

             * expression from properties only.
             */
            if (value != null && type != null && !(value instanceof String) && !isTypeCompatible(type, value)) {
                value = null;
            }
    
            if (value == null) {
                // The CLI should win for defining properties
    
                if (properties != null) {
                    // We will attempt to get nab a property as a way to specify a parameter
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionResult.java

         *
         * @return The transitive dependencies, never {@code null}.
         */
        List<Dependency> getDependencies();
    
        /**
         * Gets the dependencies that were successfully resolved.
         *
         * @return The resolved dependencies, never {@code null}.
         */
        List<Dependency> getResolvedDependencies();
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 10:13:56 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

        expected[getNullLocation()] = entry(null, v3());
        expectContents(expected);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testComputeIfPresent_nullKeySupportedAbsent() {
        assertNull(
            "computeIfPresent(null, function) should return null",
            getMap()
                .computeIfPresent(
                    null,
                    (k, v) -> {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 6.1K bytes
    - Click Count (0)
  9. guava/src/com/google/common/base/Throwables.java

       * find it when available. When this is null, use the slow way.
       */
      @J2ktIncompatible @GwtIncompatible // java.lang.reflect
      private static final @Nullable Method getStackTraceElementMethod =
          (jla == null) ? null : getGetMethod();
    
      /**
       * The "getStackTraceDepth" method, only available on some JDKs so we use reflection to find it
       * when available. When this is null, use the slow way.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java

         * @return This request, never {@code null}.
         */
        @Override
        MetadataResolutionRequest setOffline(boolean offline);
    
        /**
         * Gets the artifact to resolve metadata for.
         *
         * @return The artifact to resolve metadata for or {@code null} if not set.
         */
        Artifact getArtifact();
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.9K bytes
    - Click Count (0)
Back to Top