Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 remove use of deprecated java API

v2.3 (unstable)
closed-fixed
Juha Lindfors
None
5
2001-04-13
2001-04-05
No

org/jboss/logging/Log.java:

Changed use of deprecated DataInputStream.readLine
method to use preferred BufferedReader.readLine
instead in debug(Throwable) and exception(Throwable)
methods, as recommended in the java API docs (see
http://java.sun.com/j2se/1.3/docs/api/java/io/DataInput
Stream.html#readLine()).

Here is the unified diff result, with the original
version first:

bash-2.02$ diff -
u /tmp/saved/log.java /dev/main/jboss_src/jboss/src/mai
n/org/jboss/logging/log.java
--- /tmp/saved/log.java Fri Dec 08 11:41:32 2000
+++ /dev/main/jboss_src/jboss/src/main/org/jboss/loggin
g/log.java Wed Apr 04 11:53:48 2001
@@ -142,7 +142,7 @@
exception.printStackTrace(out);
out.close();

- DataInputStream din = new DataInputStream(new
ByteArrayInputStream(baos.toByteArray()));
+ BufferedReader din = new BufferedReader( new
InputStreamReader( new ByteArrayInputStream(
baos.toByteArray() ) ) );

String error;
try
@@ -159,7 +159,7 @@
exception.printStackTrace(out);
out.close();

- DataInputStream din = new DataInputStream(new
ByteArrayInputStream(baos.toByteArray()));
+ BufferedReader din = new BufferedReader( new
InputStreamReader( new ByteArrayInputStream(
baos.toByteArray() ) ) );

String error;
try

Discussion

  • Juha Lindfors
    Juha Lindfors
    2001-04-11

    • assigned_to: nobody --> juhalindfors
    • status: open --> open-accepted
     
  • Juha Lindfors
    Juha Lindfors
    2001-04-11

    Logged In: YES
    user_id=175239

    Committed to MAIN (v2.3) branch.

     
  • Juha Lindfors
    Juha Lindfors
    2001-04-11

    • status: open-accepted --> closed-fixed
     
  • Juha Lindfors
    Juha Lindfors
    2001-04-13

    • milestone: --> v2.3 (unstable)