From issues-return-80363-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Mon Nov 4 23:03:04 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 68E9219866 for ; Mon, 4 Nov 2019 23:03:04 +0000 (UTC) Received: (qmail 89661 invoked by uid 500); 4 Nov 2019 23:03:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 89572 invoked by uid 500); 4 Nov 2019 23:03: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 89551 invoked by uid 99); 4 Nov 2019 23:03: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:03: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 C31DEE2CAC for ; Mon, 4 Nov 2019 23:03: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 40A6B78073F for ; Mon, 4 Nov 2019 23:03:00 +0000 (UTC) Date: Mon, 4 Nov 2019 23:03:00 +0000 (UTC) From: "Gary D. Gregory (Jira)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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:all-tabpanel ] Gary D. Gregory resolved LANG-1463. ----------------------------------- Fix Version/s: 3.10 Resolution: Fixed In git master. Please verify and close. > 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)