Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1aadd3f

Browse files
committed
Fix constant value stubbing
1 parent 264d216 commit 1aadd3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csharp/ql/src/Stubs/Stubs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ private string stubMember(Member m) {
648648
if m instanceof Field // EnumConstants are already stubbed
649649
then
650650
exists(string impl |
651-
(if m.(Field).isConst() then impl = " = throw null" else impl = "") and
651+
(if m.(Field).isConst() then impl = " = default" else impl = "") and
652652
result =
653653
" " + stubModifiers(m) + stubClassName(m.(Field).getType()) + " " +
654654
m.(Field).getName() + impl + ";\n"

0 commit comments

Comments
 (0)