Skip to content

Commit

Permalink
upgrade to the Palantir fork of JavaPoet
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Nov 26, 2024
1 parent a16fda0 commit 9535029
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion implementation/autoconfig/processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<artifactId>smallrye-fault-tolerance-autoconfig-core</artifactId>
</dependency>
<dependency>
<groupId>com.squareup</groupId>
<groupId>com.palantir.javapoet</groupId>
<artifactId>javapoet</artifactId>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
import javax.lang.model.util.SimpleTypeVisitor8;
import javax.tools.Diagnostic;

import com.squareup.javapoet.ArrayTypeName;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.TypeSpec;
import com.palantir.javapoet.ArrayTypeName;
import com.palantir.javapoet.ClassName;
import com.palantir.javapoet.CodeBlock;
import com.palantir.javapoet.FieldSpec;
import com.palantir.javapoet.JavaFile;
import com.palantir.javapoet.MethodSpec;
import com.palantir.javapoet.TypeName;
import com.palantir.javapoet.TypeSpec;

import io.smallrye.config.common.utils.StringUtil;
import io.smallrye.faulttolerance.autoconfig.AutoConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import java.lang.annotation.Annotation;
import java.util.HashMap;

import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.ParameterizedTypeName;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.WildcardTypeName;
import com.palantir.javapoet.ClassName;
import com.palantir.javapoet.ParameterizedTypeName;
import com.palantir.javapoet.TypeName;
import com.palantir.javapoet.WildcardTypeName;

final class TypeNames {
static final TypeName OBJECT = ClassName.get(Object.class);
static final TypeName ANNOTATION = ClassName.get(Annotation.class);
static final TypeName CLASS = ParameterizedTypeName.get(
ClassName.get(Class.class), WildcardTypeName.subtypeOf(TypeName.OBJECT));
ClassName.get(Class.class), WildcardTypeName.subtypeOf(OBJECT));
static final TypeName CLASS_OF_ANNOTATION = ParameterizedTypeName.get(
ClassName.get(Class.class), WildcardTypeName.subtypeOf(ANNOTATION));
static final TypeName STRING = ClassName.get(String.class);
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<version.jakarta-annotations>2.1.1</version.jakarta-annotations>
<version.jakarta-cdi>4.0.1</version.jakarta-cdi>
<version.jakarta-interceptors>2.1.0</version.jakarta-interceptors>
<version.javapoet>1.13.0</version.javapoet>
<version.javapoet>0.5.0</version.javapoet>
<version.jboss-logging>3.6.0.Final</version.jboss-logging>
<version.jboss-logging-tools>2.2.1.Final</version.jboss-logging-tools>
<version.kotlin>1.9.24</version.kotlin>
Expand Down Expand Up @@ -157,7 +157,7 @@
</dependency>

<dependency>
<groupId>com.squareup</groupId>
<groupId>com.palantir.javapoet</groupId>
<artifactId>javapoet</artifactId>
<version>${version.javapoet}</version>
</dependency>
Expand Down

0 comments on commit 9535029

Please sign in to comment.