Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shorterOf (2.25 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

                if (i < lines.length - 1) {
                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            logDeprecation();
            if (s2.length() >= s1.length()) {
                return s1;
            } else {
                return s2;
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/annotations.kt

     *
     * The recommendation to avoid caching services is due to the risk of leaks. Properties annotated with [KaCachedService] should make sure
     * that they don't leak the service: the lifetime of the property should be shorter or as long as the lifetime of the cached service.
     *
     * When caching a service inside another service, the property should also be [lazy] to avoid issues with cyclic service initialization and
     * excessive class loading on startup.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top