hg: lambda/lambda/jdk: 2 new changesets

Christian Ullenboom ullenboom at googlemail.com
Fri Jun 29 08:49:24 PDT 2012


This API documentation is wrong, the parameter type is not Object but
CharSequence. Also missing a note if an element is allowed to be null. If
it was converted with String.valueOf(null) before, then null would be fine,
but now the implementation takes CharSequence--nothing is mentioned if a
null-reference is ok.

+     * Returns a new String composed of the String values returned
+     * by calling {@link String#valueOf(Object)} on each element and
joining them together

+     * @see StringBuilder#join(String, Object...)
+     *
+     * @throws  NullPointerException
+     *          If <tt>delimiter</tt> is <tt>null</tt>
+     *
+     * @since 1.8
+     */
+    public static String join(CharSequence delimiter, CharSequence...
elements) {
+        return new StringBuilder().join(delimiter, elements).toString();
+    }


Cheers,

 Christian

--

/**
 * @author   Christian
Ullenboom<http://www.xing.com/profile/Christian_Ullenboom>
 * @email    ullenboom at gmail.com
 * @address  Schloßstr. 5, 47665 Sonsbeck
 * @tel      +49 (178) 56 42 74 0
 */

Die Retrobu.de (http://retrobu.de/) ist auf der Suche nach HEIMCOMPUTERN
und SPIELKONSOLEN. Gerne nehmen wir historische Heimcomputer, Software,
Literatur, Werbung und weitere Artefakte aus der Vergangenheit entgegen
(als Spende oder gegen Bezahlung). Bei uns sind die Sammlerstücke in guten
Händen.

tutego <http://www.tutego.de/>® unterstützt SOS
Kinderdörfer<http://www.sos-kinderdoerfer.de/>,
die Deutsche Welthungerhilfe <http://www.welthungerhilfe.de/> und Ärzte
ohne Grenzen <http://www.aerzte-ohne-grenzen.de/>. Helfen Sie mit!


More information about the lambda-dev mailing list