L
laredotornado
Hi,
I'm using Java 1.5, Eclipse Galileo on Mac 10.5.6 and the code
checking plug-in (PMD) is complaining about the below block ...
BufferedReader reader = new BufferedReader(new InputStreamReader
(fileStream));
StringBuilder stringBuf = new StringBuilder();
String line = null;
...
while ((line = reader.readLine()) != null) {
stringBuf.append(line + "\n");
}
saying, "Avoid assignments in operands". How would I rewrite the
while loop to make this error go away but achieve the same
functionality?
Thanks, - Dave
I'm using Java 1.5, Eclipse Galileo on Mac 10.5.6 and the code
checking plug-in (PMD) is complaining about the below block ...
BufferedReader reader = new BufferedReader(new InputStreamReader
(fileStream));
StringBuilder stringBuf = new StringBuilder();
String line = null;
...
while ((line = reader.readLine()) != null) {
stringBuf.append(line + "\n");
}
saying, "Avoid assignments in operands". How would I rewrite the
while loop to make this error go away but achieve the same
functionality?
Thanks, - Dave