accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-2981) Cease use of underscore "_" as an identifier
Date Sun, 14 Dec 2014 05:17:13 GMT


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|].

> Cease use of underscore "_" as an identifier
> --------------------------------------------
>                 Key: ACCUMULO-2981
>                 URL:
>             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

View raw message