indexer-core/src/main/java/org/apache/maven/index/artifact/M1ArtifactRecognizer.java [31:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isChecksum(String path) {
        return path.endsWith(".sha1") || path.endsWith(".md5");
    }

    /**
     * Is this item M1 POM?
     */
    public static boolean isPom(String path) {
        return path.endsWith(".pom") || path.endsWith(".pom.sha1") || path.endsWith(".pom.md5");
    }

    /**
     * Is this item M1 snapshot?
     */
    public static boolean isSnapshot(String path) {
        return path.contains("SNAPSHOT");
    }

    /**
     * Is this item M1 metadata? There is no such!
     */
    public static boolean isMetadata(String path) {
        return path.endsWith("maven-metadata.xml")
                || path.endsWith("maven-metadata.xml.sha1")
                || path.endsWith("maven-metadata.xml.md5");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



indexer-core/src/main/java/org/apache/maven/index/artifact/M2ArtifactRecognizer.java [28:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isChecksum(String path) {
        return path.endsWith(".sha1") || path.endsWith(".md5");
    }

    /**
     * Is this item M2 POM?
     */
    public static boolean isPom(String path) {
        return path.endsWith(".pom") || path.endsWith(".pom.sha1") || path.endsWith(".pom.md5");
    }

    /**
     * Is this item M2 Snapshot?
     *
     * @param path
     * @return
     */
    public static boolean isSnapshot(String path) {
        return path.contains("SNAPSHOT");
    }

    /**
     * Is this item M2 metadata?
     */
    public static boolean isMetadata(String path) {
        return path.endsWith("maven-metadata.xml")
                || path.endsWith("maven-metadata.xml.sha1")
                || path.endsWith("maven-metadata.xml.md5");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



