Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for s2 (0.23 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 Apr 28 03:35:10 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

    /**
     */
    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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java

            }
    
            ArtifactRepository other = (ArtifactRepository) obj;
    
            return eq(getId(), other.getId());
        }
    
        protected static <T> boolean eq(T s1, T s2) {
            return Objects.equals(s1, s2);
        }
    
        public Authentication getAuthentication() {
            return authentication;
        }
    
        public void setAuthentication(Authentication authentication) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 11K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                }
            }
    
            return location;
        }
    
        private static boolean equals(String s1, String s2) {
            String c1 = s1 == null ? "" : s1.trim();
            String c2 = s2 == null ? "" : s2.trim();
            return c1.equals(c2);
        }
    
        private static Severity getSeverity(ModelBuilderRequest request, int errorThreshold) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 65K bytes
    - Viewed (0)
Back to top