-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to the maintained javapoet project
- Loading branch information
Showing
27 changed files
with
76 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.squareup.javapoet.TypeName; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
import com.palantir.javapoet.TypeName; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.google.common.collect.Sets; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.squareup.javapoet.TypeName; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
import com.palantir.javapoet.TypeName; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.CodeBlock; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.CodeBlock; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ | |
import javax.lang.model.element.Modifier; | ||
|
||
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import com.squareup.javapoet.AnnotationSpec; | ||
import com.palantir.javapoet.AnnotationSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,9 @@ | |
import com.github.benmanes.caffeine.cache.Feature; | ||
import com.google.common.collect.ImmutableSet; | ||
import com.google.common.collect.Sets; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.squareup.javapoet.TypeName; | ||
import com.squareup.javapoet.TypeSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
import com.palantir.javapoet.TypeName; | ||
import com.palantir.javapoet.TypeSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,13 +40,13 @@ | |
import com.google.common.base.CaseFormat; | ||
import com.google.common.collect.ImmutableSet; | ||
import com.google.common.collect.Sets; | ||
import com.squareup.javapoet.ClassName; | ||
import com.squareup.javapoet.CodeBlock; | ||
import com.squareup.javapoet.FieldSpec; | ||
import com.squareup.javapoet.MethodSpec; | ||
import com.squareup.javapoet.ParameterizedTypeName; | ||
import com.squareup.javapoet.TypeName; | ||
import com.squareup.javapoet.TypeSpec; | ||
import com.palantir.javapoet.ClassName; | ||
import com.palantir.javapoet.CodeBlock; | ||
import com.palantir.javapoet.FieldSpec; | ||
import com.palantir.javapoet.MethodSpec; | ||
import com.palantir.javapoet.ParameterizedTypeName; | ||
import com.palantir.javapoet.TypeName; | ||
import com.palantir.javapoet.TypeSpec; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
@@ -90,7 +90,7 @@ public Modifier[] publicFinalModifiers() { | |
} | ||
|
||
public boolean isBaseClass() { | ||
return superClass.equals(TypeName.OBJECT); | ||
return superClass.equals(ClassName.OBJECT); | ||
} | ||
|
||
public Strength keyStrength() { | ||
|
@@ -132,7 +132,7 @@ public void addVarHandle(String varName, TypeName type) { | |
Modifier.PROTECTED, Modifier.STATIC, Modifier.FINAL).build()); | ||
Consumer<CodeBlock.Builder> statement = builder -> builder | ||
.addStatement("$L = lookup.findVarHandle($T.class, $L.$L, $T.class)", fieldName, | ||
ClassName.bestGuess(className), NODE_FACTORY.rawType.simpleName(), | ||
ClassName.bestGuess(className), NODE_FACTORY.rawType().simpleName(), | ||
fieldName, type); | ||
varHandles.add(statement); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters