Skip to content

Commit

Permalink
Excavator: Upgrades Baseline to the latest version (#1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Oct 14, 2022
1 parent 60dbeb8 commit 692106e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .baseline/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</module>
<module name="LineLength"> <!-- Java Style Guide: No line-wrapping -->
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://|\{@link"/>
</module>
<module name="TreeWalker">
<module name="SuppressionCommentFilter"/> <!-- baseline-gradle: README.md -->
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ buildscript {
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
classpath 'com.palantir.gradle.conjure:gradle-conjure:5.31.0'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.27.0'
classpath 'com.palantir.baseline:gradle-baseline-java:4.178.0'
classpath 'com.palantir.baseline:gradle-baseline-java:4.181.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.11.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private static String getOptionalAccessor(Type type) {
.put(PrimitiveType.Value.SAFELONG, "SafeLong")
.put(PrimitiveType.Value.STRING, "String")
.put(PrimitiveType.Value.UUID, "Uuid")
.build();
.buildOrThrow();

private static String primitiveTypeName(PrimitiveType in) {
String typeName = PRIMITIVE_TO_TYPE_NAME.get(in.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public final class TypeFunctions {
.put(PrimitiveType.Value.SAFELONG, "SafeLong")
.put(PrimitiveType.Value.STRING, "String")
.put(PrimitiveType.Value.UUID, "Uuid")
.build();
.buildOrThrow();

public static boolean isReferenceType(Type type) {
return type.accept(IS_REFERENCE_VISITOR);
Expand Down Expand Up @@ -163,7 +163,7 @@ public static Map<TypeName, TypeDefinition> toTypesMap(List<TypeDefinition> type
ImmutableMap.Builder<TypeName, TypeDefinition> builder =
ImmutableMap.builderWithExpectedSize(typeDefinitions.size());
typeDefinitions.forEach(def -> builder.put(def.accept(TypeDefinitionVisitor.TYPE_NAME), def));
return builder.build();
return builder.buildOrThrow();
}

public static final GetTypeVisitor<PrimitiveType> PRIMITIVE_VISITOR = new GetTypeVisitor<PrimitiveType>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class ArgumentTypesResolver {
.put(SafeLong.class, "SafeLong")
.put(String.class, "String")
.put(UUID.class, "Uuid")
.build())
.buildOrThrow())
.mapKeys((Function<Class<?>, ClassName>) ClassName::get)
.map(value -> "serialize" + value)
.collectToMap());
Expand Down

0 comments on commit 692106e

Please sign in to comment.