Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 264d216 commit 1aadd3fCopy full SHA for 1aadd3f
1 file changed
csharp/ql/src/Stubs/Stubs.qll
@@ -648,7 +648,7 @@ private string stubMember(Member m) {
648
if m instanceof Field // EnumConstants are already stubbed
649
then
650
exists(string impl |
651
- (if m.(Field).isConst() then impl = " = throw null" else impl = "") and
+ (if m.(Field).isConst() then impl = " = default" else impl = "") and
652
result =
653
" " + stubModifiers(m) + stubClassName(m.(Field).getType()) + " " +
654
m.(Field).getName() + impl + ";\n"
0 commit comments