Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for s1 (0.17 sec)

  1. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

        private static int compareStrings(String s1, String s2) {
            if (s1 == null && s2 == null) {
                return 0;
            }
    
            if (s1 == null /* && s2 != null */) {
                return -1;
            }
    
            if (
            /* s1 != null && */ s2 == null) {
                return 1;
            }
    
            return s1.compareTo(s2);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java

    import org.apache.maven.model.Plugin;
    
    /**
     */
    class CacheUtils {
    
        /**
         * @deprecated Use {@link Objects#equals(Object)}
         */
        @Deprecated
        public static <T> boolean eq(T s1, T s2) {
            return Objects.equals(s1, s2);
        }
    
        /**
         * @deprecated Use {@link Objects#hashCode(Object)}
         */
        @Deprecated
        public static int hash(Object obj) {
            return obj != null ? obj.hashCode() : 0;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.5K bytes
    - Viewed (0)
Back to top