Skip to content

Commit a8167c6

Browse files
committed
Add docstring for DeclaredRepository.getUrl
1 parent d82e821 commit a8167c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ class DeclaredRepository extends PomElement {
376376
this.getName() = ["repository", "snapshotRepository", "pluginRepository"]
377377
}
378378

379+
/**
380+
* Gets the url for this repository. If the `url` tag is present, this will
381+
* be the string contents of that tag.
382+
*/
379383
string getUrl() { result = getAChild("url").(PomElement).getValue() }
380384
}
381385

0 commit comments

Comments
 (0)