Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48C7210491 for ; Fri, 21 Feb 2014 10:00:27 +0000 (UTC) Received: (qmail 70058 invoked by uid 500); 21 Feb 2014 10:00:25 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 69876 invoked by uid 500); 21 Feb 2014 10:00:24 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 69841 invoked by uid 99); 21 Feb 2014 10:00:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 10:00:22 +0000 Date: Fri, 21 Feb 2014 10:00:22 +0000 (UTC) From: "Robin Skoglund (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPCORE-375) Remove unnecessary throws UnsupportedEncodingException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Robin Skoglund created HTTPCORE-375: --------------------------------------- Summary: Remove unnecessary throws UnsupportedEncodingException Key: HTTPCORE-375 URL: https://issues.apache.org/jira/browse/HTTPCORE-375 Project: HttpComponents HttpCore Issue Type: Improvement Components: HttpCore Affects Versions: 4.4-alpha1 Reporter: Robin Skoglund Priority: Minor StringEntity has constructors that unneccessarily declare {{throws UnsupportedEncodingException}}. This over-complicates client code because you have to set up a lot of "this should never happen" exception handling. There's also a constructor that uses {{String.getBytes(String)}}, that should've instead be using {{String.getBytes(Charset)}}. -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org