commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [39/50] [lang] StrBuilder: remove commented-out code
Date Wed, 17 May 2017 15:04:23 GMT
StrBuilder: remove commented-out code


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/1375e931
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/1375e931
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/1375e931

Branch: refs/heads/release
Commit: 1375e931d7c7e6de8b297378fc296029d476d7e8
Parents: 7ddfc8a
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Thu May 4 13:01:38 2017 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Thu May 4 13:01:38 2017 +0200

----------------------------------------------------------------------
 .../apache/commons/lang3/text/StrBuilder.java   | 31 --------------------
 1 file changed, 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/1375e931/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
index e7401f3..cb0bf9d 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
@@ -2757,37 +2757,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable,
Build
         }
     }
 
-    //-----------------------------------------------------------------------
-//    /**
-//     * Gets a String version of the string builder by calling the internal
-//     * constructor of String by reflection.
-//     * <p>
-//     * WARNING: You must not use the StrBuilder after calling this method
-//     * as the buffer is now shared with the String object. To ensure this,
-//     * the internal character array is set to null, so you will get
-//     * NullPointerExceptions on all method calls.
-//     *
-//     * @return the builder as a String
-//     */
-//    public String toSharedString() {
-//        try {
-//            Constructor con = String.class.getDeclaredConstructor(
-//                new Class[] {int.class, int.class, char[].class});
-//            con.setAccessible(true);
-//            char[] buffer = buf;
-//            buf = null;
-//            size = -1;
-//            nullText = null;
-//            return (String) con.newInstance(
-//                new Object[] {Integer.valueOf(0), Integer.valueOf(size), buffer});
-//            
-//        } catch (Exception ex) {
-//            ex.printStackTrace();
-//            throw new UnsupportedOperationException("StrBuilder.toSharedString is unsupported:
" + ex.getMessage());
-//        }
-//    }
-
-    //-----------------------------------------------------------------------
     /**
      * Checks the contents of this builder against another to see if they
      * contain the same character content ignoring case.


Mime
View raw message