/* goodG2B1() - use goodsource and badsink by setting the static variable to false instead of true */ private void GoodG2B1() { double data; goodG2B1PublicStatic = false; data = CWE197_Numeric_Truncation_Error__double_connect_tcp_to_int_22b.GoodG2B1Source(); { /* POTENTIAL FLAW: Convert data to a int, possibly causing a truncation error */ IO.WriteLine((int)data); } }