Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for FeatureUsage (0.19 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/FeatureUsage.java

     */
    
    package org.gradle.internal.featurelifecycle;
    
    /**
     * An immutable description of the usage of a deprecated feature.
     */
    public abstract class FeatureUsage {
        private final String summary;
        private final Class<?> calledFrom;
    
        protected FeatureUsage(String summary, Class<?> calledFrom) {
            this.summary = summary;
            this.calledFrom = calledFrom;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/DefaultDeprecatedUsageProgressDetails.java

        public final DeprecatedFeatureUsage featureUsage;
        private final ProblemDiagnostics diagnostics;
    
        public DefaultDeprecatedUsageProgressDetails(DeprecatedFeatureUsage featureUsage, ProblemDiagnostics diagnostics) {
            this.featureUsage = featureUsage;
            this.diagnostics = diagnostics;
        }
    
        @Override
        public String getSummary() {
            return featureUsage.getSummary();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 15:24:26 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecatedFeatureUsageTest.groovy

        def "formats messages"() {
            given:
            def featureUsage = new DeprecatedFeatureUsage(summary, removalDetails, advice, contextualAdvice, documentationReference, DeprecatedFeatureUsage.Type.USER_CODE_DIRECT, "id display name", "id", getClass())
    
            expect:
            featureUsage.formattedMessage() == expected
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 16:09:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/featurelifecycle/SimulatedGroovyCallLocation.groovy

     */
    class SimulatedGroovyCallLocation {
        static FeatureUsage create() {
            return SimulatedSingleMessageLogger.nagUserWith(SimulatedSingleMessageLogger.DIRECT_CALL)
        }
    
        static FeatureUsage indirectly() {
            return SimulatedSingleMessageLogger.indirectly(SimulatedSingleMessageLogger.INDIRECT_CALL)
        }
    
        static FeatureUsage indirectly2() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerialization.java

                                    type = in.nextString();
                                    break;
                                }
                                case "featureUsage": {
                                    featureUsage = in.nextString();
                                    break;
                                }
                                case "pluginId": {
                                    pluginId = in.nextString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java

                DeprecatedFeatureUsage featureUsage = deprecationMessage.toDeprecatedFeatureUsage(calledFrom);
                nagUserWith(featureUsage);
    
                if (!featureUsage.formattedMessage().contains("deprecated")) {
                    throw new RuntimeException("Deprecation message does not contain the word 'deprecated'. Message: \n" + featureUsage.formattedMessage());
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/FeatureHandler.java

     */
    
    package org.gradle.internal.featurelifecycle;
    
    /**
     * Notified when a deprecated feature is used.
     *
     * <p>Implementations need not be thread-safe.
     */
    public interface FeatureHandler<T extends FeatureUsage> {
        void featureUsed(T usage);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 860 bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/IncubatingFeatureUsage.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.featurelifecycle;
    
    public class IncubatingFeatureUsage extends FeatureUsage {
        public IncubatingFeatureUsage(String summary, Class<?> calledFrom) {
            super(summary, calledFrom);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 840 bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/featurelifecycle/SimulatedSingleMessageLogger.java

        }
    
        public static TestFeatureUsage nagUserWith(String message) {
            return new TestFeatureUsage(message, SimulatedSingleMessageLogger.class);
        }
    
        static class TestFeatureUsage extends FeatureUsage {
            public final Exception exception = new Exception();
    
            public TestFeatureUsage(String summary, Class<?> calledFrom) {
                super(summary, calledFrom);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecatedFeatureUsage.java

    import org.gradle.api.problems.internal.DeprecationData;
    import org.gradle.api.problems.internal.DocLink;
    import org.gradle.internal.featurelifecycle.FeatureUsage;
    
    import javax.annotation.Nullable;
    
    import static org.apache.commons.lang.StringUtils.isNotEmpty;
    
    public class DeprecatedFeatureUsage extends FeatureUsage {
    
        private final String removalDetails;
        private final String advice;
        private final String contextualAdvice;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top