Skip to content

Commit

Permalink
Move CollectionUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
donat committed Apr 12, 2021
1 parent 29a32c8 commit 3c1c7f2
Show file tree
Hide file tree
Showing 158 changed files with 881 additions and 189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import groovy.lang.Closure;
import org.gradle.internal.Cast;
import org.gradle.util.CollectionUtils;
import org.gradle.util.internal.CollectionUtils;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.gradle.api.specs;

import org.gradle.util.CollectionUtils;
import org.gradle.util.internal.CollectionUtils;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.gradle.api.specs.Spec;
import org.gradle.internal.Cast;
import org.gradle.internal.UncheckedException;
import org.gradle.util.CollectionUtils;
import org.gradle.util.internal.CollectionUtils;

import java.io.File;
import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.gradle.internal.resources.ResourceLockState;
import org.gradle.internal.time.Time;
import org.gradle.internal.time.Timer;
import org.gradle.util.CollectionUtils;
import org.gradle.util.internal.CollectionUtils;
import org.gradle.util.Path;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
import static org.gradle.internal.Cast.castNullable;
import static org.gradle.internal.Cast.uncheckedNonnullCast;

/**
* This class is only here to maintain binary compatibility with existing plugins.
* <p>
* Plugins should prefer external collection frameworks over this class.
* Internally, all code should use {@link org.gradle.util.internal.CollectionUtils}.
*
* @deprecated Will be removed in Gradle 8.0.
*/
@Deprecated
public abstract class CollectionUtils {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang.StringUtils;
import org.gradle.api.UncheckedIOException;
import org.gradle.internal.IoActions;
import org.gradle.util.internal.CollectionUtils;
import org.gradle.util.internal.LimitedDescription;

import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.gradle.internal.IoActions;
import org.gradle.internal.UncheckedException;
import org.gradle.internal.io.StreamByteBuffer;
import org.gradle.util.internal.CollectionUtils;

import javax.annotation.Nullable;
import java.io.File;
Expand Down
Loading

0 comments on commit 3c1c7f2

Please sign in to comment.