Skip to content

Commit 402f20c

Browse files
authored
Merge pull request github#5154 from smowton/smowton/admin/deprecate-old-maven-predicate-names
Java: Re-introduce deprecated versions of old Maven predicate names
2 parents 80978c7 + 655cfb3 commit 402f20c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

java/ql/src/semmle/code/xml/MavenPom.qll

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,21 @@ class MavenRepoJar extends File {
428428
)
429429
}
430430

431+
/**
432+
* DEPRECATED: name changed to `getGroupId` for consistent use of camel-case.
433+
*/
434+
deprecated string getGroupID() { result = getGroupId() }
435+
431436
/**
432437
* Gets the `artifactId` of this jar.
433438
*/
434439
string getArtifactId() { result = getParentContainer().getParentContainer().getBaseName() }
435440

441+
/**
442+
* DEPRECATED: name changed to `getArtifactId` for consistent casing and consistent spelling with Maven.
443+
*/
444+
deprecated string getArtefactID() { result = getArtifactId() }
445+
436446
/**
437447
* Gets the artifact version string of this jar.
438448
*/
@@ -446,6 +456,11 @@ class MavenRepoJar extends File {
446456
pom.getArtifact().getValue() = getArtifactId()
447457
}
448458

459+
/**
460+
* DEPRECATED: name changed to `artifactMatches` for consistent spelling with Maven.
461+
*/
462+
deprecated predicate artefactMatches(ProtoPom pom) { artifactMatches(pom) }
463+
449464
/**
450465
* Holds if this jar is both an artifact for the POM, and has a version string that matches the POM
451466
* version string. Only soft and hard version matches are supported.

0 commit comments

Comments
 (0)