Why DataOutputStream doesn't create a "Resource leak: stream never closed " warning.
public static void main(String[] args) {
try{
DataOutputStream o = new DataOutputStream(System.out);
o.writeInt(12);
}
catch(IOException ex){
}
}
I thought it was because it extends FilterOutputStream But when extending my own class, it gives the warning.