From issues-return-80365-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Mon Nov 4 23:08:03 2019 Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id C926819896 for ; Mon, 4 Nov 2019 23:08:02 +0000 (UTC) Received: (qmail 99271 invoked by uid 500); 4 Nov 2019 23:08:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 99186 invoked by uid 500); 4 Nov 2019 23:08:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 99173 invoked by uid 99); 4 Nov 2019 23:08:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2019 23:08:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D5FB1E30F8 for ; Mon, 4 Nov 2019 23:08:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 0D27278054F for ; Mon, 4 Nov 2019 23:08:00 +0000 (UTC) Date: Mon, 4 Nov 2019 23:08:00 +0000 (UTC) From: "Gary D. Gregory (Jira)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1463) StringUtils abbreviate returns String of length greater than maxWidth MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1463?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16967= 083#comment-16967083 ]=20 Gary D. Gregory commented on LANG-1463: --------------------------------------- Hi=C2=A0[~Ramesh Dhungel], Thank you for your detailed feedback. Please feel free to submit a PR on Gi= tHub. =C2=A0 > StringUtils abbreviate returns String of length greater than maxWidth > --------------------------------------------------------------------- > > Key: LANG-1463 > URL: https://issues.apache.org/jira/browse/LANG-1463 > Project: Commons Lang > Issue Type: Bug > Components: lang.* > Affects Versions: 3.9 > Reporter: Thomas Wessendorf > Priority: Minor > Fix For: 3.10 > > > In the JavaDoc of StringUtils.abbreviate(final String str, final String a= bbrevMarker, final int maxWidth) is written, that the method in no case wil= l return a String of length greater than maxWidth. This doesn't hold, if ab= brevMarker is an empty string. > Expected behaviour: > abbreviate("much too long text", "", 13).equals("much too long") > =C2=A0 > Actual behaviour: > abbreviate("much too long text", "", 13).equals("much too long text") -- This message was sent by Atlassian Jira (v8.3.4#803005)