ERROR] ...[33,55] error: diamond operator is not supported in -source 1.5[ERROR] ...[129,40] error: multi-catchstatement is not supported in -source 1.5
[ERROR] ...[44,6]
我有一段遗留的Java代码,它打开了一个文件并在方法中读取了行,如以下代码片段所示: BufferedReader brdr = while ((String line = brdr.readLine()) != null) { } 无论何时调用,都会在方法中传递变量fiilenm。为了避免java.io.FileNotFoundException: ... (Too many open files),为了安全