Skip to content

Commit d9f243d

Browse files
author
Dave Bartolomeo
committed
Java: Fix QLDoc for Container.toString()
Fixes github#5828 The QLDoc was just too specific about the default implementation. I've improved the wording.
1 parent 65ac5b8 commit d9f243d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/ql/src/semmle/code/FileSystem.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@ class Container extends @container, Top {
146146
}
147147

148148
/**
149-
* Gets a textual representation of the path of this container.
149+
* Gets a textual representation of this container.
150150
*
151-
* This is the absolute path of the container.
151+
* The default implementation returns the absolute path to the container, but subclasses may
152+
* may override to provide a different result. To get the absolute path for any `Container`, call
153+
* `Container.getAbsolutePath()` directly.
152154
*/
153155
override string toString() { result = getAbsolutePath() }
154156
}

0 commit comments

Comments
 (0)