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 39FB6200D78 for ; Wed, 6 Dec 2017 20:32:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 386AC160C0A; Wed, 6 Dec 2017 19:32:05 +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 7E161160C1D for ; Wed, 6 Dec 2017 20:32:04 +0100 (CET) Received: (qmail 72612 invoked by uid 500); 6 Dec 2017 19:32:03 -0000 Mailing-List: contact dev-help@ranger.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.apache.org Delivered-To: mailing list dev@ranger.apache.org Received: (qmail 72572 invoked by uid 99); 6 Dec 2017 19:32:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2017 19:32:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 72DDBC5EE6; Wed, 6 Dec 2017 19:32:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.191 X-Spam-Level: *** X-Spam-Status: No, score=3.191 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_MANYTO=0.2, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NJFKdvgzMuAa; Wed, 6 Dec 2017 19:32:01 +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 E11865F30A; Wed, 6 Dec 2017 19:32:00 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 90900E0248; Wed, 6 Dec 2017 19:32:00 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 20FBFC40043; Wed, 6 Dec 2017 19:31:59 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3538900250574146109==" MIME-Version: 1.0 Subject: Re: Review Request 64365: RANGER-1916:Remove duplicate code and optimize code in AtlasClient.class From: Qiang Zhang To: Gautam Borad , Alok Lal , Ramesh Mani , Velmurugan Periasamy , Colm O hEigeartaigh , Selvamohan Neethiraj , Ankita Sinha , Madhan Neethiraj , Qiang Zhang , Don Bosco Durai Cc: pengjianhua , ranger Date: Wed, 06 Dec 2017 19:31:59 -0000 Message-ID: <20171206193159.9320.92195@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Qiang Zhang X-ReviewGroup: ranger X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/64365/ X-Sender: Qiang Zhang X-ReviewBoard-ShipIt: 1 References: <20171206075327.9320.48328@reviews-vm2.apache.org> In-Reply-To: <20171206075327.9320.48328@reviews-vm2.apache.org> X-ReviewBoard-ShipIt-Only: 1 Reply-To: Qiang Zhang X-ReviewRequest-Repository: ranger archived-at: Wed, 06 Dec 2017 19:32:05 -0000 --===============3538900250574146109== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64365/#review193030 ----------------------------------------------------------- Ship it! Ship It! - Qiang Zhang On 十二月 6, 2017, 7:53 a.m., pengjianhua wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/64365/ > ----------------------------------------------------------- > > (Updated 十二月 6, 2017, 7:53 a.m.) > > > Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan Neethiraj, Velmurugan Periasamy, and Qiang Zhang. > > > Bugs: RANGER-1916 > https://issues.apache.org/jira/browse/RANGER-1916 > > > Repository: ranger > > > Description > ------- > > Remove duplicate code and optimize code in AtlasClient.class > The follow code > “if (client != null) > { client.destroy(); } > ” > in connectionTestResource and connectionTestResource method has been declared and execute in the getResourceList method that called them ,so remove duplicate code,And change the code "AtlasClient AtlasClient = null;" to "AtlasClient atlasClient = null;" > > > Diffs > ----- > > plugin-atlas/src/main/java/org/apache/ranger/services/atlas/client/AtlasClient.java 857df87 > > > Diff: https://reviews.apache.org/r/64365/diff/1/ > > > Testing > ------- > > Tested it. > > > Thanks, > > pengjianhua > > --===============3538900250574146109==--