- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for tdmap (0.1 sec)
-
internal/logger/logonce.go
// Holds a map of recently logged errors. type logOnceType struct { IDMap map[string]onceErr sync.Mutex } func (l *logOnceType) logOnceConsoleIf(ctx context.Context, subsystem string, err error, id string, errKind ...interface{}) { if err == nil { return } nerr := unwrapErrs(err) l.Lock() shouldLog := true prev, ok := l.IDMap[id] if !ok { l.IDMap[id] = onceErr{ Err: nerr, Count: 1, }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 3.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/ExcludeRuleNotationConverterTest.groovy
def "checkValidExcludeRuleMap is true if group or module is defined"() { expect: parser.parseNotation(WrapUtil.toMap(ExcludeRule.GROUP_KEY, "aGroup")); parser.parseNotation(WrapUtil.toMap(ExcludeRule.MODULE_KEY, "aModule")); when: parser.parseNotation(WrapUtil.toMap("unknownKey", "someValue")) then: thrown(InvalidUserDataException) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 12 07:56:11 UTC 2021 - 2.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/FilterChainTest.java
import java.io.Reader; import java.io.StringReader; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Collections; import static org.gradle.util.internal.WrapUtil.toMap; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.CoreMatchers.sameInstance; import static org.hamcrest.MatcherAssert.assertThat;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jul 20 13:25:37 UTC 2021 - 6.3K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/UpgradePropertiesRuleSetup.java
} private static Map<AccessorKey, ReplacedAccessor> mapOldAccessorsOfUpgradedProperties(List<UpgradedProperty> upgradedProperties) { return upgradedProperties.stream() .flatMap(UpgradePropertiesRuleSetup::mapOldAccessorsOfUpgradedProperty) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 08:40:36 UTC 2024 - 4.2K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileActivationContext.java
return map != null ? Collections.unmodifiableMap(map) : Collections.emptyMap(); } private static Map<String, String> toMap(Properties properties) { if (properties != null && !properties.isEmpty()) { return properties.entrySet().stream() .collect(Collectors.toMap(e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue()))); } else { return null; }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 6.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/DefaultExcludeRuleContainerTest.java
@Test public void testAdd() { DefaultExcludeRuleContainer excludeRuleContainer = new DefaultExcludeRuleContainer(); Map<String, String> excludeRuleArgs1 = WrapUtil.toMap("group", "value1"); Map<String, String> excludeRuleArgs2 = WrapUtil.toMap("module", "value2"); excludeRuleContainer.add(excludeRuleArgs1); excludeRuleContainer.add(excludeRuleArgs2);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 12 07:56:11 UTC 2021 - 3.8K bytes - Viewed (0) -
maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileActivationContext.java
return map != null ? Collections.unmodifiableMap(map) : Collections.emptyMap(); } private static Map<String, String> toMap(Properties properties) { if (properties != null && !properties.isEmpty()) { return properties.entrySet().stream() .collect(Collectors.toMap(e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue()))); } else { return null; }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 6.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/describer/AbstractResolutionFailureDescriber.java
.collect(Collectors.toMap(AssessedAttribute::getAttribute, AssessedAttribute::getProvided, (a, b) -> a)); @SuppressWarnings("DataFlowIssue") Map<Attribute<?>, ?> incompatibleAttrs = assessedCandidate.getIncompatibleAttributes().stream() .collect(Collectors.toMap(AssessedAttribute::getAttribute, AssessedAttribute::getProvided, (a, b) -> a));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 13:08:22 UTC 2024 - 6.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ConventionAwareHelperTest.java
conventionAware.map("map1", new Callable<Object>() { public Object call() { return toMap("a", "b"); } }); assertThat(conventionAware.getConventionValue(emptyMap(), "map1", false), equalTo((Object) toMap("a", "b"))); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.9K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PerformanceTestRuntimesGenerator.java
import java.nio.file.StandardOpenOption; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import static java.util.stream.Collectors.toMap; public class PerformanceTestRuntimesGenerator { public static void main(String[] args) throws IOException { new PerformanceTestRuntimesGenerator().generate(new File(args[0])); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.2K bytes - Viewed (0)