java程序中出现Link all references for a local rename (does not change references in other files)

1. Today, doing a TCP pass json string, longing stream data transfer time, there has been such a problem, prompting Link all references for a local rename (does not change references in other files). I check in online for a long time are questions about Android.r package, but I was a TCP server, it is certainly not the problem. However, she found, the thief simply write the time to write a string into it, that was not kneeling chanting. But the Internet has not been said to see this problem.

private Socket s;

OutputStream os = s.getOutputStream (); // create an output stream

os.write ( "HS"); // this can be wrong? Really dishes

Finally, one should be written os.write ( 'H' + 'S');

But it seems so there will be wrong to write, play safe, direct os.write ( "HS" .getBytes ()); would be finished

2. Later it was found a problem, this is wrong. Args will not work with this name, just another change on the line. I guarantee program absolutely no second thing that name. I do not know why




If there are errors welcome to point out, we will try to remedy ~

Published 21 original articles · won praise 1 · views 10000 +

Guess you like

Origin blog.csdn.net/qigezuishuaide/article/details/77648273