PrintWriter.java (print(String)): Don't catch IOException, write(String) already does.
* java/io/PrintWriter.java (print(String)): Don't catch IOException, write(String) already does. From-SVN: r35937
This commit is contained in:
parent
985287b87c
commit
fb034e9464
2 changed files with 6 additions and 8 deletions
|
@ -171,14 +171,7 @@ public class PrintWriter extends Writer
|
|||
*/
|
||||
public void print(String str)
|
||||
{
|
||||
try
|
||||
{
|
||||
write(str == null ? "null" : str);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
error = true;
|
||||
}
|
||||
write(str == null ? "null" : str);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue