Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 094AECFFC for ; Sun, 14 Dec 2014 05:17:14 +0000 (UTC) Received: (qmail 75990 invoked by uid 500); 14 Dec 2014 05:17:13 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 75939 invoked by uid 500); 14 Dec 2014 05:17:13 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 75928 invoked by uid 99); 14 Dec 2014 05:17:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2014 05:17:13 +0000 Date: Sun, 14 Dec 2014 05:17:13 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2981) Cease use of underscore "_" as an identifier MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245825#comment-14245825 ] Christopher Tubbs commented on ACCUMULO-2981: --------------------------------------------- [~medined]: so, it's only the single-character identifier that is deprecated with an underscore. Java 8 doesn't complain about identifiers which start with, or contain underscores, so long as they are greater than one character long, so you can probably keep doing what you're doing, without issue. :) My suspicion is that Java may want to use a single underscore as a future operator of some type. One suggestion I read was that it could be used as a placeholder variable, like in Scala, or [one of the other special ways Scala uses underscore|http://stackoverflow.com/a/8001065]. > Cease use of underscore "_" as an identifier > -------------------------------------------- > > Key: ACCUMULO-2981 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2981 > Project: Accumulo > Issue Type: Sub-task > Reporter: Christopher Tubbs > Assignee: Christopher Tubbs > Labels: newbie > Fix For: 1.6.2, 1.7.0 > > Time Spent: 20m > Remaining Estimate: 0h > > JDK 8 adds a new warning that the use of underscore as an identifier may be removed in future versions. We should just go ahead and remove the use of these in our code to eliminate these warnings and prepare for future versions of Java where support for this is dropped. -- This message was sent by Atlassian JIRA (v6.3.4#6332)