You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2002/10/09 05:29:18 UTC

cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/exception ExceptionUtils.java

bayard      2002/10/08 20:29:18

  Modified:    lang/src/java/org/apache/commons/lang/exception
                        ExceptionUtils.java
  Log:
  Patch submitted by Fredrik Westermarck <fr...@mdh.se> that
  replaces a TODO now that we have a SystemUtils.
  
  Revision  Changes    Path
  1.16      +3 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java
  
  Index: ExceptionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ExceptionUtils.java	26 Aug 2002 16:40:43 -0000	1.15
  +++ ExceptionUtils.java	9 Oct 2002 03:29:18 -0000	1.16
  @@ -65,6 +65,8 @@
   import java.util.List;
   import java.util.StringTokenizer;
   
  +import org.apache.commons.lang.SystemUtils;
  +
   /**
    * Utility routines for manipulating <code>Throwable</code> objects.
    *
  @@ -405,8 +407,7 @@
        */
       static String[] getStackFrames(String stackTrace)
       {
  -        // TODO: Use constant from org.apache.commons.lang.SystemUtils.
  -        String linebreak = System.getProperty("line.separator");
  +        String linebreak = SystemUtils.LINE_SEPARATOR;
           StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);
           List list = new LinkedList();
           while (frames.hasMoreTokens())
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>