Skip to content

Commit b210009

Browse files
authored
Merge pull request github#2923 from yo-h/java-customizations
Java: add `Customizations.qll`
2 parents dab6691 + 62f8bf2 commit b210009

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

change-notes/1.24/analysis-java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The following changes in version 1.24 affect Java analysis in all applications.
55
## General improvements
66

77
* Alert suppression can now be done with single-line block comments (`/* ... */`) as well as line comments (`// ...`).
8+
* A `Customizations.qll` file has been added to allow customizations of the standard library that apply to all queries.
89

910
## New queries
1011

java/ql/src/Customizations.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Contains customizations to the standard library.
3+
*
4+
* This module is imported by `java.qll`, so any customizations defined here automatically
5+
* apply to all queries.
6+
*
7+
* Typical examples of customizations include adding new subclasses of abstract classes such as
8+
* the `RemoteFlowSource` and `AdditionalTaintStep` classes associated with the security queries
9+
* to model frameworks that are not covered by the standard library.
10+
*/
11+
12+
import java

java/ql/src/java.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/** Provides all default Java QL imports. */
22

3+
import Customizations
34
import semmle.code.FileSystem
45
import semmle.code.Location
56
import semmle.code.java.Annotation

0 commit comments

Comments
 (0)