- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for setAnnotation (0.5 sec)
-
pkg/registry/flowcontrol/ensurer/flowschema_test.go
b.object.SetGeneration(value) return b } func (b *fsBuilder) WithAutoUpdateAnnotation(value string) *fsBuilder { setAnnotation(b.object, value) return b } func setAnnotation(accessor metav1.Object, value string) { if accessor.GetAnnotations() == nil { accessor.SetAnnotations(map[string]string{}) } accessor.GetAnnotations()[flowcontrolv1.AutoUpdateAnnotationKey] = value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.2K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go
return b.object } func (b *plBuilder) WithGeneration(value int64) *plBuilder { b.object.SetGeneration(value) return b } func (b *plBuilder) WithAutoUpdateAnnotation(value string) *plBuilder { setAnnotation(b.object, value) return b } func (b *plBuilder) WithLimited(nominalConcurrencyShares int32) *plBuilder { b.object.Spec.Type = flowcontrolv1.PriorityLevelEnablementLimited
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 19.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy
} def "get annotation"() { expect: getAnnotation(Root, InheritedAnnotation).value() == "default" getAnnotation(Subclass, InheritedAnnotation).value() == "default" getAnnotation(RootInterface, InheritedAnnotation).value() == "default" getAnnotation(SubInterface, InheritedAnnotation).value() == "default" getAnnotation(Root, NotInheritedAnnotation).value() == "default"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.9K bytes - Viewed (0) -
platforms/extensibility/test-kit/src/testFixtures/groovy/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.groovy
} if (testDetails.getAnnotation(InspectsExecutedTasks) && gradleVersion < MINIMUM_VERSIONS_BY_ANNOTATIONS[InspectsExecutedTasks]) { return false } if (testDetails.getAnnotation(NoDebug) && debug) { return false } if (testDetails.getAnnotation(Debug) && !debug) { return false
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 18:29:03 UTC 2024 - 18.7K bytes - Viewed (0) -
platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/listeners/ConstantsCollectorTest.groovy
public static final int CONSTANT2 = A.CONSTANT; @Annotation(A.CONSTANT) public final int field = A.CONSTANT; } """ when: compiler.compile(toSourceFile(clazz) + getAnnotation("int")) then: privateDependentToConstants["A"] == null accessibleDependentToConstants["A"] == null } def "collect all constants from annotations on class"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:06:26 UTC 2023 - 22.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java
public static <A extends Annotation> A getAnnotation(Class<?> type, Class<A> annotationType) { return getAnnotation(type, annotationType, true); } @Nullable private static <A extends Annotation> A getAnnotation(Class<?> type, Class<A> annotationType, boolean checkType) { A annotation; if (checkType) { annotation = type.getAnnotation(annotationType);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/OptionReader.java
} return valueMethod; } private static String[] getOptionNames(JavaMethod<Object, Collection> optionValueMethod) { OptionValues optionValues = optionValueMethod.getMethod().getAnnotation(OptionValues.class); return optionValues.value(); } private static final class OptionElementAndSignature { final OptionElement element; @Nullable
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 06 09:51:34 UTC 2023 - 10K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/modelreader/impl/AnnotationCallInterceptionRequestReaderImpl.java
} private static String getCallableName(ExecutableElement methodElement, CallableKindInfo kindInfo) { CallableDefinition.Name nameAnnotation = methodElement.getAnnotation(CallableDefinition.Name.class); String nameFromPattern = callableNameFromNamingConvention(methodElement.getSimpleName().toString()); if (kindInfo == CallableKindInfo.AFTER_CONSTRUCTOR) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 15 09:48:42 UTC 2023 - 13K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/MessageTest.groovy
assert transported.toString() == original.toString() assert transported.stackTrace == original.stackTrace assert (transported.class.getAnnotation(Contextual) != null) == (original.class.getAnnotation(Contextual) != null) } private Object transport(Object arg) { def outputStream = new ByteArrayOutputStream()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 16.4K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidateAction.java
// Won't validate interfaces return; } if (!cacheable && topLevelBean.getAnnotation(DisableCachingByDefault.class) == null && topLevelBean.getAnnotation(UntrackedTask.class) == null ) { boolean isTask = Task.class.isAssignableFrom(topLevelBean);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 09:10:37 UTC 2024 - 10.1K bytes - Viewed (0)