GlenKPeterson / Paguro
Showing 1 of 3 files from the diff.

@@ -134,9 +134,9 @@
Loading
134 134
     This data definition method is one of the few methods in this project that support varargs.
135 135
     */
136 136
    @SafeVarargs
137 -
    public static <T> @NotNull MutRrbt<@Nullable T> mutableRrb(@Nullable T... items) {
137 +
    public static <T> @NotNull MutRrbt<T> mutableRrb(T... items) {
138 138
        if ( (items == null) || (items.length < 1) ) { return RrbTree.emptyMutable(); }
139 -
        return RrbTree.<@Nullable T>emptyMutable()
139 +
        return RrbTree.<T>emptyMutable()
140 140
                .concat(Arrays.asList(items));
141 141
    }
142 142
@@ -146,10 +146,10 @@
Loading
146 146
     values overwrite earlier ones.
147 147
     */
148 148
    @SafeVarargs
149 -
    public static <T> @NotNull MutSet<@Nullable T> mutableSet(@Nullable T... items) {
150 -
        MutSet<@Nullable T> ret = PersistentHashSet.emptyMutable();
149 +
    public static <T> @NotNull MutSet<T> mutableSet(T... items) {
150 +
        MutSet<T> ret = PersistentHashSet.emptyMutable();
151 151
        if (items == null) { return ret; }
152 -
        for (@Nullable T t : items) {
152 +
        for (T t : items) {
153 153
            ret.put(t);
154 154
        }
155 155
        return ret;
@@ -160,10 +160,10 @@
Loading
160 160
     few methods in this project that support varargs.
161 161
     */
162 162
    @SafeVarargs
163 -
    public static <T> @NotNull MutList<@Nullable T> mutableVec(@Nullable T... items) {
164 -
        MutList<@Nullable T> ret = PersistentVector.emptyMutable();
163 +
    public static <T> @NotNull MutList<T> mutableVec(T... items) {
164 +
        MutList<T> ret = PersistentVector.emptyMutable();
165 165
        if (items == null) { return ret; }
166 -
        for (@Nullable T t : items) {
166 +
        for (T t : items) {
167 167
            ret.append(t);
168 168
        }
169 169
        return ret;
@@ -179,7 +179,7 @@
Loading
179 179
     This data definition method is one of the few methods in this project that support varargs.
180 180
     */
181 181
    @SafeVarargs
182 -
    static public <T> @NotNull ImRrbt<@Nullable T> rrb(@Nullable T... items) {
182 +
    static public <T> @NotNull ImRrbt<T> rrb(T... items) {
183 183
        if ( (items == null) || (items.length < 1) ) { return RrbTree.empty(); }
184 184
        return mutableRrb(items).immutable();
185 185
    }
@@ -190,7 +190,7 @@
Loading
190 190
     values overwrite earlier ones.
191 191
     */
192 192
    @SafeVarargs
193 -
    public static <T> @NotNull ImSet<@Nullable T> set(@Nullable T... items) {
193 +
    public static <T> @NotNull ImSet<T> set(T... items) {
194 194
        if ( (items == null) || (items.length < 1) ) { return PersistentHashSet.empty(); }
195 195
        return PersistentHashSet.of(Arrays.asList(items));
196 196
    }
@@ -258,7 +258,7 @@
Loading
258 258
     few methods in this project that support varargs.
259 259
     */
260 260
    @SafeVarargs
261 -
    static public <T> @NotNull ImList<@Nullable T> vec(@Nullable T... items) {
261 +
    static public <T> @NotNull ImList<T> vec(T... items) {
262 262
        if ( (items == null) || (items.length < 1) ) { return PersistentVector.empty(); }
263 263
        return mutableVec(items).immutable();
264 264
    }
@@ -289,14 +289,18 @@
Loading
289 289
    /** Wrap a String (or CharSequence) to perform a Character-by-Character transformation on it. */
290 290
    public static @NotNull UnmodIterable<Character> xformChars(CharSequence seq) {
291 291
        //noinspection Convert2Lambda
292 -
        return new UnmodIterable<Character>() {
292 +
        return new UnmodIterable<>() {
293 293
            @NotNull
294 -
            @Override public UnmodIterator<Character> iterator() {
295 -
                return new UnmodIterator<Character>() {
294 +
            @Override
295 +
            public UnmodIterator<Character> iterator() {
296 +
                return new UnmodIterator<>() {
296 297
                    private int idx = 0;
297 -
                    @Override public boolean hasNext() { return idx < seq.length(); }
298 298
299 -
                    @Override public Character next() {
299 +
                    @Override
300 +
                    public boolean hasNext() { return idx < seq.length(); }
301 +
302 +
                    @Override
303 +
                    public Character next() {
300 304
                        int nextIdx = idx + 1;
301 305
                        Character c = seq.charAt(idx);
302 306
                        idx = nextIdx;
Files Complexity Coverage
src/main/java/org/organicdesign/fp 91.56% 89.63%
Project Totals (64 files) 91.56% 89.63%
397.1
TRAVIS_JDK_VERSION=openjdk11
TRAVIS_OS_NAME=linux
396.1
TRAVIS_JDK_VERSION=openjdk11
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading