File tree 2 files changed +1
-27
lines changed
csharp/ql/lib/semmle/code/csharp
2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -31,29 +31,3 @@ predicate alwaysNotNullCallable(Callable c) {
31
31
forex ( Expr e | c .canReturn ( e ) | e instanceof NonNullExpr )
32
32
)
33
33
}
34
-
35
- /** Holds if callable 'c' always throws an exception. */
36
- predicate alwaysThrowsCallable ( Callable c ) {
37
- finalCallable ( c ) and
38
- (
39
- forex ( ControlFlow:: Node pre | pre = c .getExitPoint ( ) .getAPredecessor ( ) |
40
- pre .getElement ( ) instanceof ThrowElement
41
- )
42
- or
43
- exists ( CIL:: Method m | m .matchesHandle ( c ) | CR:: alwaysThrowsMethod ( m ) )
44
- )
45
- }
46
-
47
- /** Holds if callable `c` always throws exception `ex`. */
48
- predicate alwaysThrowsException ( Callable c , Class ex ) {
49
- finalCallable ( c ) and
50
- (
51
- forex ( ControlFlow:: Node pre | pre = c .getExitPoint ( ) .getAPredecessor ( ) |
52
- pre .getElement ( ) .( ThrowElement ) .getThrownExceptionType ( ) = ex
53
- )
54
- or
55
- exists ( CIL:: Method m , CIL:: Type t | m .matchesHandle ( c ) |
56
- CR:: alwaysThrowsException ( m , t ) and t .matchesHandle ( ex )
57
- )
58
- )
59
- }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import csharp
6
6
private import semmle.code.csharp.frameworks.system.security.cryptography.SymmetricAlgorithm
7
7
8
8
/** Array of type Byte */
9
- class ByteArray extends ArrayType {
9
+ deprecated class ByteArray extends ArrayType {
10
10
ByteArray ( ) { getElementType ( ) instanceof ByteType }
11
11
}
12
12
You can’t perform that action at this time.
0 commit comments