The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
org/apache/maven/index/artifact/M1ArtifactRecognizer.java | 26 |
org/apache/maven/index/artifact/M2ArtifactRecognizer.java | 26 |
{ /** * Is this item M2 Checksum? */ 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.indexOf( "SNAPSHOT" ) != -1; } /** * 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" ); } |