hg: lambda/lambda/jdk: rename java.util.functions -> java.util.function

Mike Duigou mike.duigou at oracle.com
Thu Nov 15 11:20:15 PST 2012


The current JDK preferred naming scheme is to use the singular form. There are obviously historical exceptions that can't be changed. We were asked to rename the java.util.functions, etc. as part of the review for inclusion into jdk8.

I will be renaming java.util.streams, java.util.streams.ops, and java.util.streams.primitives in a changeset coming shortly.

There will be three or four changesets today to match the naming proposed for integration into jdk8 mainline. They are being done as separate commits so that people can more easily update their in-flight patches. ie. pull the repo, update to the package rename rev, fix your mq patches, pop the mq patches, apply the next rev, repeat until your patches are at the head

Mike

On Nov 15 2012, at 11:13 , Paul Benedict wrote:

> Mike, why is the singular preferred? I am curious on the reasoning. Some other packages use plural. For example, "util.streams", "util.prefs", "nio.channels".
> 
> Paul 
> 
> On Thu, Nov 15, 2012 at 12:55 PM, <mike.duigou at oracle.com> wrote:
> Changeset: ef5e16bf1045
> Author:    mduigou
> Date:      2012-11-15 10:55 -0800
> URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/ef5e16bf1045
> 
> rename java.util.functions -> java.util.function


More information about the lambda-dev mailing list