Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 59E66200CE6 for ; Tue, 1 Aug 2017 18:35:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5885C1677B7; Tue, 1 Aug 2017 16:35:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9AC541677B4 for ; Tue, 1 Aug 2017 18:35:06 +0200 (CEST) Received: (qmail 87623 invoked by uid 500); 1 Aug 2017 16:35:05 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 87545 invoked by uid 99); 1 Aug 2017 16:35:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2017 16:35:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D9412C02BB for ; Tue, 1 Aug 2017 16:35:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id dH2oj1CjXSzv for ; Tue, 1 Aug 2017 16:35:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C6AD05FD55 for ; Tue, 1 Aug 2017 16:35:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1828FE087B for ; Tue, 1 Aug 2017 16:35:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A130924660 for ; Tue, 1 Aug 2017 16:35:00 +0000 (UTC) Date: Tue, 1 Aug 2017 16:35:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7462) OutboundSseEventImpl could use some minor tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 01 Aug 2017 16:35:07 -0000 [ https://issues.apache.org/jira/browse/CXF-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16109238#comment-16109238 ] ASF GitHub Bot commented on CXF-7462: ------------------------------------- GitHub user andymc12 opened a pull request: https://github.com/apache/cxf/pull/301 [CXF-7462] Minor improvements to OutboundSseEventImpl 1) Make the fields final to reflect that the event is immutable. 2) Use defaults for the data type (String.class) and media type (SERVER_SENT_EVENT_TYPE). 3) Restrict the constructor's visibility. New tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/andymc12/cxf experiment-sse Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cxf/pull/301.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #301 ---- commit 02f7a8b330ded2e97d7920529644433b4b6ac87f Author: Andy McCright Date: 2017-08-01T16:32:40Z [CXF-7462] Minor improvements to OutboundSseEventImpl 1) Make the fields final to reflect that the event is immutable. 2) Use defaults for the data type (String.class) and media type (SERVER_SENT_EVENT_TYPE). 3) Restrict the constructor's visibility. New tests. ---- > OutboundSseEventImpl could use some minor tweaks > ------------------------------------------------ > > Key: CXF-7462 > URL: https://issues.apache.org/jira/browse/CXF-7462 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Affects Versions: 3.2.0 > Reporter: Andy McCright > Priority: Minor > Fix For: 3.2.0 > > > The OutboundSseEventImpl class could use some minor tweaks, including: > 1) Make the fields final to reflect that the event is immutable. > 2) Use defaults for the data type (String.class) and media type (SERVER_SENT_EVENT_TYPE). > 3) Restrict the constructor's visibility. > I also plan to add some tests for these changes. -- This message was sent by Atlassian JIRA (v6.4.14#64029)