NetBeans uses the Streams class for check whether we are really running on JDK8 and thus whether it can enable JDK8 features. Add such fake package private class.
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 14 Sep 2014 22:34:52 +0200
changeset 1697461cd4b24db9
parent 1696 ce34fdc36fac
child 1698 8b615a496fb4
NetBeans uses the Streams class for check whether we are really running on JDK8 and thus whether it can enable JDK8 features. Add such fake package private class.
rt/emul/compact/src/main/java/java/util/stream/Streams.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rt/emul/compact/src/main/java/java/util/stream/Streams.java	Sun Sep 14 22:34:52 2014 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +/*
     1.5 + * Copyright (C) 2014 API Design
     1.6 + *
     1.7 + * This program is free software; you can redistribute it and/or
     1.8 + * modify it under the terms of the GNU General Public License
     1.9 + * as published by the Free Software Foundation; either version 2
    1.10 + * of the License, or (at your option) any later version.
    1.11 + *
    1.12 + * This program is distributed in the hope that it will be useful,
    1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 + * GNU General Public License for more details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU General Public License
    1.18 + * along with this program; if not, write to the Free Software
    1.19 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    1.20 + */
    1.21 +package java.util.stream;
    1.22 +
    1.23 +/** NetBeans uses the Streams class for check whether we are really running
    1.24 + * on JDK8 and thus can enable JDK8 features. Let's add one such fake class
    1.25 + * here.
    1.26 + *
    1.27 + * @author Jaroslav Tulach
    1.28 + */
    1.29 +final class Streams {
    1.30 +    private Streams() {
    1.31 +    }
    1.32 +}