commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/builder ToStringStyle.java
Date Sat, 16 Oct 2004 18:13:34 GMT
scolebourne    2004/10/16 11:13:34

  Modified:    lang/src/java/org/apache/commons/lang/builder
                        ToStringStyle.java
  Log:
  Remove dead code
  
  Revision  Changes    Path
  1.34      +1 -70     jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ToStringStyle.java
  
  Index: ToStringStyle.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ToStringStyle.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ToStringStyle.java	8 Oct 2004 00:07:59 -0000	1.33
  +++ ToStringStyle.java	16 Oct 2004 18:13:34 -0000	1.34
  @@ -2117,73 +2117,4 @@
   
       }
   
  -    //----------------------------------------------------------------------------
  -
  -// Removed, as the XML style needs more work for escaping characters, arrays,
  -// collections, maps and embedded beans.
  -//    /**
  -//     * ToStringStyle that outputs in XML style
  -//     */
  -//    private static class XMLToStringStyle extends ToStringStyle {
  -//        
  -//        /**
  -//         * Constructor - use the static constant rather than instantiating.
  -//         */
  -//        private XMLToStringStyle() {
  -//            super();
  -//            nullText = "null";
  -//            sizeStartText = "size=";
  -//            sizeEndText = "";
  -//        }
  -//        
  -//        /**
  -//         * @see ToStringStyle#appendStart(StringBuffer, Object)
  -//         */
  -//        public void appendStart(StringBuffer buffer, Object object) {
  -//            buffer.append('<');
  -//            buffer.append(getShortClassName(object.getClass()));
  -//            buffer.append(" class=\"");
  -//            appendClassName(buffer, object);
  -//            buffer.append("\" hashCode=\"");
  -//            appendIdentityHashCode(buffer, object);
  -//            buffer.append("\">");
  -//            buffer.append(SystemUtils.LINE_SEPARATOR);
  -//            buffer.append("  ");
  -//        }
  -//
  -//        /**
  -//         * @see ToStringStyle#appendFieldStart(StringBuffer, String)
  -//         */
  -//        protected void appendFieldStart(StringBuffer buffer, String fieldName) {
  -//            buffer.append('<');
  -//            buffer.append(fieldName);
  -//            buffer.append('>');
  -//        }
  -//
  -//        /**
  -//         * @see ToStringStyle#appendFieldEnd(StringBuffer, String)
  -//         */
  -//        protected void appendFieldEnd(StringBuffer buffer, String fieldName) {
  -//            buffer.append("</");
  -//            buffer.append(fieldName);
  -//            buffer.append('>');
  -//            buffer.append(SystemUtils.LINE_SEPARATOR);
  -//            buffer.append("  ");
  -//        }
  -//
  -//        /**
  -//         * @see ToStringStyle#appendEnd(StringBuffer, Object)
  -//         */
  -//        public void appendEnd(StringBuffer buffer, Object object) {
  -//            int len = buffer.length();
  -//            if (len > 2 && buffer.charAt(len - 1) == ' ' && buffer.charAt(len
- 2) == ' ') {
  -//                buffer.setLength(len - 2);
  -//            }
  -//            buffer.append("</");
  -//            buffer.append(getShortClassName(object.getClass()));
  -//            buffer.append("\">");
  -//        }
  -//
  -//    }
  -
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message