commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject svn commit: r1022144 [8/19] - in /websites/production/commons/content/proper/commons-text/javadocs/api-release: ./ org/apache/commons/text/ org/apache/commons/text/class-use/ org/apache/commons/text/diff/ org/apache/commons/text/diff/class-use/ org/apa...
Date Tue, 12 Dec 2017 14:33:52 GMT
Modified: websites/production/commons/content/proper/commons-text/javadocs/api-release/src-html/org/apache/commons/text/ExtendedMessageFormat.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/javadocs/api-release/src-html/org/apache/commons/text/ExtendedMessageFormat.html
(original)
+++ websites/production/commons/content/proper/commons-text/javadocs/api-release/src-html/org/apache/commons/text/ExtendedMessageFormat.html
Tue Dec 12 14:33:51 2017
@@ -318,125 +318,125 @@
 <span class="sourceLineNo">310</span>        if (obj == null) {<a name="line.310"></a>
 <span class="sourceLineNo">311</span>            return false;<a name="line.311"></a>
 <span class="sourceLineNo">312</span>        }<a name="line.312"></a>
-<span class="sourceLineNo">313</span>        if (!super.equals(obj)) {<a name="line.313"></a>
-<span class="sourceLineNo">314</span>            return false;<a name="line.314"></a>
+<span class="sourceLineNo">313</span>        if (!Objects.equals(getClass(),
obj.getClass())) {<a name="line.313"></a>
+<span class="sourceLineNo">314</span>          return false;<a name="line.314"></a>
 <span class="sourceLineNo">315</span>        }<a name="line.315"></a>
-<span class="sourceLineNo">316</span>        if (!Objects.equals(getClass(),
obj.getClass())) {<a name="line.316"></a>
-<span class="sourceLineNo">317</span>          return false;<a name="line.317"></a>
-<span class="sourceLineNo">318</span>        }<a name="line.318"></a>
-<span class="sourceLineNo">319</span>        final ExtendedMessageFormat rhs
= (ExtendedMessageFormat) obj;<a name="line.319"></a>
-<span class="sourceLineNo">320</span>        if (!Objects.equals(toPattern, rhs.toPattern))
{<a name="line.320"></a>
+<span class="sourceLineNo">316</span>        final ExtendedMessageFormat rhs
= (ExtendedMessageFormat) obj;<a name="line.316"></a>
+<span class="sourceLineNo">317</span>        if (!Objects.equals(toPattern, rhs.toPattern))
{<a name="line.317"></a>
+<span class="sourceLineNo">318</span>            return false;<a name="line.318"></a>
+<span class="sourceLineNo">319</span>        }<a name="line.319"></a>
+<span class="sourceLineNo">320</span>        if (!super.equals(obj)) {<a name="line.320"></a>
 <span class="sourceLineNo">321</span>            return false;<a name="line.321"></a>
 <span class="sourceLineNo">322</span>        }<a name="line.322"></a>
-<span class="sourceLineNo">323</span>        if (!Objects.equals(registry, rhs.registry))
{<a name="line.323"></a>
-<span class="sourceLineNo">324</span>            return false;<a name="line.324"></a>
-<span class="sourceLineNo">325</span>        }<a name="line.325"></a>
-<span class="sourceLineNo">326</span>        return true;<a name="line.326"></a>
-<span class="sourceLineNo">327</span>    }<a name="line.327"></a>
-<span class="sourceLineNo">328</span><a name="line.328"></a>
-<span class="sourceLineNo">329</span>    /**<a name="line.329"></a>
-<span class="sourceLineNo">330</span>     * {@inheritDoc}<a name="line.330"></a>
-<span class="sourceLineNo">331</span>     */<a name="line.331"></a>
-<span class="sourceLineNo">332</span>    @Override<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    public int hashCode() {<a name="line.333"></a>
-<span class="sourceLineNo">334</span>        int result = super.hashCode();<a
name="line.334"></a>
-<span class="sourceLineNo">335</span>        result = HASH_SEED * result + Objects.hashCode(registry);<a
name="line.335"></a>
-<span class="sourceLineNo">336</span>        result = HASH_SEED * result + Objects.hashCode(toPattern);<a
name="line.336"></a>
-<span class="sourceLineNo">337</span>        return result;<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    }<a name="line.338"></a>
-<span class="sourceLineNo">339</span><a name="line.339"></a>
-<span class="sourceLineNo">340</span>    /**<a name="line.340"></a>
-<span class="sourceLineNo">341</span>     * Get a custom format from a format
description.<a name="line.341"></a>
-<span class="sourceLineNo">342</span>     *<a name="line.342"></a>
-<span class="sourceLineNo">343</span>     * @param desc String<a name="line.343"></a>
-<span class="sourceLineNo">344</span>     * @return Format<a name="line.344"></a>
-<span class="sourceLineNo">345</span>     */<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    private Format getFormat(final String
desc) {<a name="line.346"></a>
-<span class="sourceLineNo">347</span>        if (registry != null) {<a name="line.347"></a>
-<span class="sourceLineNo">348</span>            String name = desc;<a name="line.348"></a>
-<span class="sourceLineNo">349</span>            String args = null;<a name="line.349"></a>
-<span class="sourceLineNo">350</span>            final int i = desc.indexOf(START_FMT);<a
name="line.350"></a>
-<span class="sourceLineNo">351</span>            if (i &gt; 0) {<a name="line.351"></a>
-<span class="sourceLineNo">352</span>                name = desc.substring(0,
i).trim();<a name="line.352"></a>
-<span class="sourceLineNo">353</span>                args = desc.substring(i
+ 1).trim();<a name="line.353"></a>
-<span class="sourceLineNo">354</span>            }<a name="line.354"></a>
-<span class="sourceLineNo">355</span>            final FormatFactory factory
= registry.get(name);<a name="line.355"></a>
-<span class="sourceLineNo">356</span>            if (factory != null) {<a
name="line.356"></a>
-<span class="sourceLineNo">357</span>                return factory.getFormat(name,
args, getLocale());<a name="line.357"></a>
-<span class="sourceLineNo">358</span>            }<a name="line.358"></a>
-<span class="sourceLineNo">359</span>        }<a name="line.359"></a>
-<span class="sourceLineNo">360</span>        return null;<a name="line.360"></a>
-<span class="sourceLineNo">361</span>    }<a name="line.361"></a>
-<span class="sourceLineNo">362</span><a name="line.362"></a>
-<span class="sourceLineNo">363</span>    /**<a name="line.363"></a>
-<span class="sourceLineNo">364</span>     * Read the argument index from the
current format element.<a name="line.364"></a>
-<span class="sourceLineNo">365</span>     *<a name="line.365"></a>
-<span class="sourceLineNo">366</span>     * @param pattern pattern to parse<a
name="line.366"></a>
-<span class="sourceLineNo">367</span>     * @param pos current parse position<a
name="line.367"></a>
-<span class="sourceLineNo">368</span>     * @return argument index<a name="line.368"></a>
-<span class="sourceLineNo">369</span>     */<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    private int readArgumentIndex(final
String pattern, final ParsePosition pos) {<a name="line.370"></a>
-<span class="sourceLineNo">371</span>        final int start = pos.getIndex();<a
name="line.371"></a>
-<span class="sourceLineNo">372</span>        seekNonWs(pattern, pos);<a name="line.372"></a>
-<span class="sourceLineNo">373</span>        final StringBuilder result = new
StringBuilder();<a name="line.373"></a>
-<span class="sourceLineNo">374</span>        boolean error = false;<a name="line.374"></a>
-<span class="sourceLineNo">375</span>        for (; !error &amp;&amp;
pos.getIndex() &lt; pattern.length(); next(pos)) {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>            char c = pattern.charAt(pos.getIndex());<a
name="line.376"></a>
-<span class="sourceLineNo">377</span>            if (Character.isWhitespace(c))
{<a name="line.377"></a>
-<span class="sourceLineNo">378</span>                seekNonWs(pattern, pos);<a
name="line.378"></a>
-<span class="sourceLineNo">379</span>                c = pattern.charAt(pos.getIndex());<a
name="line.379"></a>
-<span class="sourceLineNo">380</span>                if (c != START_FMT &amp;&amp;
c != END_FE) {<a name="line.380"></a>
-<span class="sourceLineNo">381</span>                    error = true;<a name="line.381"></a>
-<span class="sourceLineNo">382</span>                    continue;<a name="line.382"></a>
-<span class="sourceLineNo">383</span>                }<a name="line.383"></a>
-<span class="sourceLineNo">384</span>            }<a name="line.384"></a>
-<span class="sourceLineNo">385</span>            if ((c == START_FMT || c ==
END_FE) &amp;&amp; result.length() &gt; 0) {<a name="line.385"></a>
-<span class="sourceLineNo">386</span>                try {<a name="line.386"></a>
-<span class="sourceLineNo">387</span>                    return Integer.parseInt(result.toString());<a
name="line.387"></a>
-<span class="sourceLineNo">388</span>                } catch (final NumberFormatException
e) { // NOPMD<a name="line.388"></a>
-<span class="sourceLineNo">389</span>                    // we've already ensured
only digits, so unless something<a name="line.389"></a>
-<span class="sourceLineNo">390</span>                    // outlandishly large
was specified we should be okay.<a name="line.390"></a>
-<span class="sourceLineNo">391</span>                }<a name="line.391"></a>
-<span class="sourceLineNo">392</span>            }<a name="line.392"></a>
-<span class="sourceLineNo">393</span>            error = !Character.isDigit(c);<a
name="line.393"></a>
-<span class="sourceLineNo">394</span>            result.append(c);<a name="line.394"></a>
-<span class="sourceLineNo">395</span>        }<a name="line.395"></a>
-<span class="sourceLineNo">396</span>        if (error) {<a name="line.396"></a>
-<span class="sourceLineNo">397</span>            throw new IllegalArgumentException(<a
name="line.397"></a>
-<span class="sourceLineNo">398</span>                    "Invalid format argument
index at position " + start + ": "<a name="line.398"></a>
-<span class="sourceLineNo">399</span>                            + pattern.substring(start,
pos.getIndex()));<a name="line.399"></a>
-<span class="sourceLineNo">400</span>        }<a name="line.400"></a>
-<span class="sourceLineNo">401</span>        throw new IllegalArgumentException(<a
name="line.401"></a>
-<span class="sourceLineNo">402</span>                "Unterminated format element
at position " + start);<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    }<a name="line.403"></a>
-<span class="sourceLineNo">404</span><a name="line.404"></a>
-<span class="sourceLineNo">405</span>    /**<a name="line.405"></a>
-<span class="sourceLineNo">406</span>     * Parse the format component of a format
element.<a name="line.406"></a>
-<span class="sourceLineNo">407</span>     *<a name="line.407"></a>
-<span class="sourceLineNo">408</span>     * @param pattern string to parse<a
name="line.408"></a>
-<span class="sourceLineNo">409</span>     * @param pos current parse position<a
name="line.409"></a>
-<span class="sourceLineNo">410</span>     * @return Format description String<a
name="line.410"></a>
-<span class="sourceLineNo">411</span>     */<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    private String parseFormatDescription(final
String pattern, final ParsePosition pos) {<a name="line.412"></a>
-<span class="sourceLineNo">413</span>        final int start = pos.getIndex();<a
name="line.413"></a>
-<span class="sourceLineNo">414</span>        seekNonWs(pattern, pos);<a name="line.414"></a>
-<span class="sourceLineNo">415</span>        final int text = pos.getIndex();<a
name="line.415"></a>
-<span class="sourceLineNo">416</span>        int depth = 1;<a name="line.416"></a>
-<span class="sourceLineNo">417</span>        for (; pos.getIndex() &lt; pattern.length();
next(pos)) {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>            switch (pattern.charAt(pos.getIndex()))
{<a name="line.418"></a>
-<span class="sourceLineNo">419</span>            case START_FE:<a name="line.419"></a>
-<span class="sourceLineNo">420</span>                depth++;<a name="line.420"></a>
-<span class="sourceLineNo">421</span>                break;<a name="line.421"></a>
-<span class="sourceLineNo">422</span>            case END_FE:<a name="line.422"></a>
-<span class="sourceLineNo">423</span>                depth--;<a name="line.423"></a>
-<span class="sourceLineNo">424</span>                if (depth == 0) {<a name="line.424"></a>
-<span class="sourceLineNo">425</span>                    return pattern.substring(text,
pos.getIndex());<a name="line.425"></a>
-<span class="sourceLineNo">426</span>                }<a name="line.426"></a>
-<span class="sourceLineNo">427</span>                break;<a name="line.427"></a>
-<span class="sourceLineNo">428</span>            case QUOTE:<a name="line.428"></a>
-<span class="sourceLineNo">429</span>                getQuotedString(pattern,
pos);<a name="line.429"></a>
-<span class="sourceLineNo">430</span>                break;<a name="line.430"></a>
-<span class="sourceLineNo">431</span>            default:<a name="line.431"></a>
+<span class="sourceLineNo">323</span>        return Objects.equals(registry,
rhs.registry);<a name="line.323"></a>
+<span class="sourceLineNo">324</span>    }<a name="line.324"></a>
+<span class="sourceLineNo">325</span><a name="line.325"></a>
+<span class="sourceLineNo">326</span>    /**<a name="line.326"></a>
+<span class="sourceLineNo">327</span>     * {@inheritDoc}<a name="line.327"></a>
+<span class="sourceLineNo">328</span>     */<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    @Override<a name="line.329"></a>
+<span class="sourceLineNo">330</span>    public int hashCode() {<a name="line.330"></a>
+<span class="sourceLineNo">331</span>        int result = super.hashCode();<a
name="line.331"></a>
+<span class="sourceLineNo">332</span>        result = HASH_SEED * result + Objects.hashCode(registry);<a
name="line.332"></a>
+<span class="sourceLineNo">333</span>        result = HASH_SEED * result + Objects.hashCode(toPattern);<a
name="line.333"></a>
+<span class="sourceLineNo">334</span>        return result;<a name="line.334"></a>
+<span class="sourceLineNo">335</span>    }<a name="line.335"></a>
+<span class="sourceLineNo">336</span><a name="line.336"></a>
+<span class="sourceLineNo">337</span>    /**<a name="line.337"></a>
+<span class="sourceLineNo">338</span>     * Get a custom format from a format
description.<a name="line.338"></a>
+<span class="sourceLineNo">339</span>     *<a name="line.339"></a>
+<span class="sourceLineNo">340</span>     * @param desc String<a name="line.340"></a>
+<span class="sourceLineNo">341</span>     * @return Format<a name="line.341"></a>
+<span class="sourceLineNo">342</span>     */<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    private Format getFormat(final String
desc) {<a name="line.343"></a>
+<span class="sourceLineNo">344</span>        if (registry != null) {<a name="line.344"></a>
+<span class="sourceLineNo">345</span>            String name = desc;<a name="line.345"></a>
+<span class="sourceLineNo">346</span>            String args = null;<a name="line.346"></a>
+<span class="sourceLineNo">347</span>            final int i = desc.indexOf(START_FMT);<a
name="line.347"></a>
+<span class="sourceLineNo">348</span>            if (i &gt; 0) {<a name="line.348"></a>
+<span class="sourceLineNo">349</span>                name = desc.substring(0,
i).trim();<a name="line.349"></a>
+<span class="sourceLineNo">350</span>                args = desc.substring(i
+ 1).trim();<a name="line.350"></a>
+<span class="sourceLineNo">351</span>            }<a name="line.351"></a>
+<span class="sourceLineNo">352</span>            final FormatFactory factory
= registry.get(name);<a name="line.352"></a>
+<span class="sourceLineNo">353</span>            if (factory != null) {<a
name="line.353"></a>
+<span class="sourceLineNo">354</span>                return factory.getFormat(name,
args, getLocale());<a name="line.354"></a>
+<span class="sourceLineNo">355</span>            }<a name="line.355"></a>
+<span class="sourceLineNo">356</span>        }<a name="line.356"></a>
+<span class="sourceLineNo">357</span>        return null;<a name="line.357"></a>
+<span class="sourceLineNo">358</span>    }<a name="line.358"></a>
+<span class="sourceLineNo">359</span><a name="line.359"></a>
+<span class="sourceLineNo">360</span>    /**<a name="line.360"></a>
+<span class="sourceLineNo">361</span>     * Read the argument index from the
current format element.<a name="line.361"></a>
+<span class="sourceLineNo">362</span>     *<a name="line.362"></a>
+<span class="sourceLineNo">363</span>     * @param pattern pattern to parse<a
name="line.363"></a>
+<span class="sourceLineNo">364</span>     * @param pos current parse position<a
name="line.364"></a>
+<span class="sourceLineNo">365</span>     * @return argument index<a name="line.365"></a>
+<span class="sourceLineNo">366</span>     */<a name="line.366"></a>
+<span class="sourceLineNo">367</span>    private int readArgumentIndex(final
String pattern, final ParsePosition pos) {<a name="line.367"></a>
+<span class="sourceLineNo">368</span>        final int start = pos.getIndex();<a
name="line.368"></a>
+<span class="sourceLineNo">369</span>        seekNonWs(pattern, pos);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>        final StringBuilder result = new
StringBuilder();<a name="line.370"></a>
+<span class="sourceLineNo">371</span>        boolean error = false;<a name="line.371"></a>
+<span class="sourceLineNo">372</span>        for (; !error &amp;&amp;
pos.getIndex() &lt; pattern.length(); next(pos)) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span>            char c = pattern.charAt(pos.getIndex());<a
name="line.373"></a>
+<span class="sourceLineNo">374</span>            if (Character.isWhitespace(c))
{<a name="line.374"></a>
+<span class="sourceLineNo">375</span>                seekNonWs(pattern, pos);<a
name="line.375"></a>
+<span class="sourceLineNo">376</span>                c = pattern.charAt(pos.getIndex());<a
name="line.376"></a>
+<span class="sourceLineNo">377</span>                if (c != START_FMT &amp;&amp;
c != END_FE) {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>                    error = true;<a name="line.378"></a>
+<span class="sourceLineNo">379</span>                    continue;<a name="line.379"></a>
+<span class="sourceLineNo">380</span>                }<a name="line.380"></a>
+<span class="sourceLineNo">381</span>            }<a name="line.381"></a>
+<span class="sourceLineNo">382</span>            if ((c == START_FMT || c ==
END_FE) &amp;&amp; result.length() &gt; 0) {<a name="line.382"></a>
+<span class="sourceLineNo">383</span>                try {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>                    return Integer.parseInt(result.toString());<a
name="line.384"></a>
+<span class="sourceLineNo">385</span>                } catch (final NumberFormatException
e) { // NOPMD<a name="line.385"></a>
+<span class="sourceLineNo">386</span>                    // we've already ensured
only digits, so unless something<a name="line.386"></a>
+<span class="sourceLineNo">387</span>                    // outlandishly large
was specified we should be okay.<a name="line.387"></a>
+<span class="sourceLineNo">388</span>                }<a name="line.388"></a>
+<span class="sourceLineNo">389</span>            }<a name="line.389"></a>
+<span class="sourceLineNo">390</span>            error = !Character.isDigit(c);<a
name="line.390"></a>
+<span class="sourceLineNo">391</span>            result.append(c);<a name="line.391"></a>
+<span class="sourceLineNo">392</span>        }<a name="line.392"></a>
+<span class="sourceLineNo">393</span>        if (error) {<a name="line.393"></a>
+<span class="sourceLineNo">394</span>            throw new IllegalArgumentException(<a
name="line.394"></a>
+<span class="sourceLineNo">395</span>                    "Invalid format argument
index at position " + start + ": "<a name="line.395"></a>
+<span class="sourceLineNo">396</span>                            + pattern.substring(start,
pos.getIndex()));<a name="line.396"></a>
+<span class="sourceLineNo">397</span>        }<a name="line.397"></a>
+<span class="sourceLineNo">398</span>        throw new IllegalArgumentException(<a
name="line.398"></a>
+<span class="sourceLineNo">399</span>                "Unterminated format element
at position " + start);<a name="line.399"></a>
+<span class="sourceLineNo">400</span>    }<a name="line.400"></a>
+<span class="sourceLineNo">401</span><a name="line.401"></a>
+<span class="sourceLineNo">402</span>    /**<a name="line.402"></a>
+<span class="sourceLineNo">403</span>     * Parse the format component of a format
element.<a name="line.403"></a>
+<span class="sourceLineNo">404</span>     *<a name="line.404"></a>
+<span class="sourceLineNo">405</span>     * @param pattern string to parse<a
name="line.405"></a>
+<span class="sourceLineNo">406</span>     * @param pos current parse position<a
name="line.406"></a>
+<span class="sourceLineNo">407</span>     * @return Format description String<a
name="line.407"></a>
+<span class="sourceLineNo">408</span>     */<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    private String parseFormatDescription(final
String pattern, final ParsePosition pos) {<a name="line.409"></a>
+<span class="sourceLineNo">410</span>        final int start = pos.getIndex();<a
name="line.410"></a>
+<span class="sourceLineNo">411</span>        seekNonWs(pattern, pos);<a name="line.411"></a>
+<span class="sourceLineNo">412</span>        final int text = pos.getIndex();<a
name="line.412"></a>
+<span class="sourceLineNo">413</span>        int depth = 1;<a name="line.413"></a>
+<span class="sourceLineNo">414</span>        while (pos.getIndex() &lt; pattern.length())
{<a name="line.414"></a>
+<span class="sourceLineNo">415</span>            switch (pattern.charAt(pos.getIndex()))
{<a name="line.415"></a>
+<span class="sourceLineNo">416</span>            case START_FE:<a name="line.416"></a>
+<span class="sourceLineNo">417</span>                depth++;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>                next(pos);<a name="line.418"></a>
+<span class="sourceLineNo">419</span>                break;<a name="line.419"></a>
+<span class="sourceLineNo">420</span>            case END_FE:<a name="line.420"></a>
+<span class="sourceLineNo">421</span>                depth--;<a name="line.421"></a>
+<span class="sourceLineNo">422</span>                if (depth == 0) {<a name="line.422"></a>
+<span class="sourceLineNo">423</span>                    return pattern.substring(text,
pos.getIndex());<a name="line.423"></a>
+<span class="sourceLineNo">424</span>                }<a name="line.424"></a>
+<span class="sourceLineNo">425</span>                next(pos);<a name="line.425"></a>
+<span class="sourceLineNo">426</span>                break;<a name="line.426"></a>
+<span class="sourceLineNo">427</span>            case QUOTE:<a name="line.427"></a>
+<span class="sourceLineNo">428</span>                getQuotedString(pattern,
pos);<a name="line.428"></a>
+<span class="sourceLineNo">429</span>                break;<a name="line.429"></a>
+<span class="sourceLineNo">430</span>            default:<a name="line.430"></a>
+<span class="sourceLineNo">431</span>                next(pos);<a name="line.431"></a>
 <span class="sourceLineNo">432</span>                break;<a name="line.432"></a>
 <span class="sourceLineNo">433</span>            }<a name="line.433"></a>
 <span class="sourceLineNo">434</span>        }<a name="line.434"></a>

Modified: websites/production/commons/content/proper/commons-text/javadocs/api-release/src-html/org/apache/commons/text/FormattableUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/javadocs/api-release/src-html/org/apache/commons/text/FormattableUtils.html
(original)
+++ websites/production/commons/content/proper/commons-text/javadocs/api-release/src-html/org/apache/commons/text/FormattableUtils.html
Tue Dec 12 14:33:51 2017
@@ -139,9 +139,9 @@
 <span class="sourceLineNo">131</span>            final int precision, final char
padChar, final CharSequence ellipsis) {<a name="line.131"></a>
 <span class="sourceLineNo">132</span>        if (!(ellipsis == null || precision
&lt; 0 || ellipsis.length() &lt;= precision)) {<a name="line.132"></a>
 <span class="sourceLineNo">133</span>            throw new IllegalArgumentException(<a
name="line.133"></a>
-<span class="sourceLineNo">134</span>                    String.format("Specified
ellipsis '%1$s' exceeds precision of %2$s",<a name="line.134"></a>
+<span class="sourceLineNo">134</span>                    String.format("Specified
ellipsis '%s' exceeds precision of %s",<a name="line.134"></a>
 <span class="sourceLineNo">135</span>                            ellipsis,<a
name="line.135"></a>
-<span class="sourceLineNo">136</span>                            Integer.valueOf(precision)));<a
name="line.136"></a>
+<span class="sourceLineNo">136</span>                            precision));<a
name="line.136"></a>
 <span class="sourceLineNo">137</span>        }<a name="line.137"></a>
 <span class="sourceLineNo">138</span>        final StringBuilder buf = new StringBuilder(seq);<a
name="line.138"></a>
 <span class="sourceLineNo">139</span>        if (precision &gt;= 0 &amp;&amp;
precision &lt; seq.length()) {<a name="line.139"></a>



Mime
View raw message