commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/exception NestableDelegate.java
Date Thu, 21 Aug 2003 05:33:11 GMT
ggregory    2003/08/20 22:33:10

  Modified:    lang/src/java/org/apache/commons/lang/exception
                        NestableDelegate.java
  Log:
  Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
  
  Revision  Changes    Path
  1.19      +13 -1     jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableDelegate.java
  
  Index: NestableDelegate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/NestableDelegate.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- NestableDelegate.java	18 Aug 2003 02:22:24 -0000	1.18
  +++ NestableDelegate.java	21 Aug 2003 05:33:10 -0000	1.19
  @@ -100,12 +100,14 @@
       /**
        * Whether to print the stack trace top-down.
        * This public flag may be set by calling code, typically in initialisation.
  +     * @since 2.0
        */
       public static boolean topDown = true;
       
       /**
        * Whether to trim the repeated stack trace.
        * This public flag may be set by calling code, typically in initialisation.
  +     * @since 2.0
        */
       public static boolean trimStackFrames = true;
   
  @@ -115,6 +117,7 @@
        *
        * @param nestable the Nestable implementation (<i>must</i> extend
        * {@link java.lang.Throwable})
  +     * @since 2.0
        */
       public NestableDelegate(Nestable nestable) {
           if (nestable instanceof Throwable) {
  @@ -135,6 +138,7 @@
        * @throws IndexOutOfBoundsException if the <code>index</code> argument
is
        * negative or not less than the count of <code>Throwable</code>s in the
        * chain
  +     * @since 2.0
        */
       public String getMessage(int index) {
           Throwable t = this.getThrowable(index);
  @@ -156,6 +160,7 @@
        * java.lang.Throwable}.
        * @return The concatenated message for this and all nested
        * <code>Throwable</code>s
  +     * @since 2.0
        */
       public String getMessage(String baseMsg) {
           StringBuffer msg = new StringBuffer();
  @@ -186,6 +191,7 @@
        * operation.
        *
        * @return the error messages
  +     * @since 2.0
        */
       public String[] getMessages() {
           Throwable[] throwables = this.getThrowables();
  @@ -209,6 +215,7 @@
        * @throws IndexOutOfBoundsException if the <code>index</code> argument
is
        * negative or not less than the count of <code>Throwable</code>s in the
        * chain
  +     * @since 2.0
        */
       public Throwable getThrowable(int index) {
           if (index == 0) {
  @@ -223,6 +230,7 @@
        * <code>Nestable</code> contained by this delegate.
        *
        * @return the throwable count
  +     * @since 2.0
        */
       public int getThrowableCount() {
           return ExceptionUtils.getThrowableCount(this.nestable);
  @@ -234,6 +242,7 @@
        * element for each <code>Throwable</code>.
        *
        * @return the <code>Throwable</code>s
  +     * @since 2.0
        */
       public Throwable[] getThrowables() {
           return ExceptionUtils.getThrowables(this.nestable);
  @@ -253,6 +262,7 @@
        * @throws IndexOutOfBoundsException if the <code>fromIndex</code> argument
        * is negative or not less than the count of <code>Throwable</code>s in
the
        * chain
  +     * @since 2.0
        */
       public int indexOfThrowable(Class type, int fromIndex) {
           if (fromIndex < 0) {
  @@ -355,6 +365,7 @@
        *
        * @param t The <code>Throwable</code>.
        * @return  An array of strings describing each stack frame.
  +     * @since 2.0
        */
       protected String[] getStackFrames(Throwable t) {
           StringWriter sw = new StringWriter();
  @@ -375,6 +386,7 @@
        * one just on top.
        *
        * @param stacks The list containing String[] elements
  +     * @since 2.0
        */
       protected void trimStackFrames(List stacks) {
            for (int size=stacks.size(), i=size-1; i > 0; i--) {
  
  
  

Mime
View raw message