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 3BBB3200D4F for ; Wed, 6 Dec 2017 08:55:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3A25D160C08; Wed, 6 Dec 2017 07:55:06 +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 8112C160BFD for ; Wed, 6 Dec 2017 08:55:05 +0100 (CET) Received: (qmail 82512 invoked by uid 500); 6 Dec 2017 07:55:04 -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 82501 invoked by uid 99); 6 Dec 2017 07:55:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2017 07:55:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F05C018070F for ; Wed, 6 Dec 2017 07:55:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Ca8BYs_dACTM for ; Wed, 6 Dec 2017 07:55:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3E8735F216 for ; Wed, 6 Dec 2017 07:55: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 80EBAE095C for ; Wed, 6 Dec 2017 07:55:01 +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 02FB0255C7 for ; Wed, 6 Dec 2017 07:55:00 +0000 (UTC) Date: Wed, 6 Dec 2017 07:55:00 +0000 (UTC) From: "peng.jianhua (JIRA)" To: dev@ranger.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (RANGER-1916) Remove duplicate code and optimize code in AtlasClient.class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Dec 2017 07:55:06 -0000 [ https://issues.apache.org/jira/browse/RANGER-1916?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] peng.jianhua updated RANGER-1916: --------------------------------- Attachment: 0001-RANGER-1916-Remove-duplicate-code-and-optimize-code-.p= atch > Remove duplicate code and optimize code in AtlasClient.class > ------------------------------------------------------------ > > Key: RANGER-1916 > URL: https://issues.apache.org/jira/browse/RANGER-1916 > Project: Ranger > Issue Type: Improvement > Components: plugins > Affects Versions: master > Reporter: peng.jianhua > Assignee: peng.jianhua > Priority: Minor > Fix For: master > > Attachments: 0001-RANGER-1916-Remove-duplicate-code-and-optimize-= code-.patch > > > Remove duplicate code and optimize code in AtlasClient.class > The follow code > =E2=80=9Cif (client !=3D null) { > =09=09=09=09client.destroy(); > =09=09=09}=E2=80=9D=20 > in connectionTestResource and connectionTestResource method has been d= eclared and execute in the getResourceList method that called them ,so rem= ove duplicate code,And change the code "AtlasClient AtlasClient =3D null;" = to "AtlasClient atlasClient =3D null;" -- This message was sent by Atlassian JIRA (v6.4.14#64029)