
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com> Co-authored-by: Dorian Burihabwa <75226315+dorian-burihabwa-sonarsource@users.noreply.github.com>
13 lines
132 B
Plaintext
13 lines
132 B
Plaintext
[source,java]
|
|
----
|
|
string s = "";
|
|
try
|
|
{
|
|
s = File.ReadAllText(fileName);
|
|
}
|
|
catch (Exception e) // Noncompliant
|
|
{
|
|
throw;
|
|
}
|
|
----
|