Skip to content

Commit 32a0ae3

Browse files
committed
Template arguments should not be null
If the generated annotation isn't available use the empty string instead of null. Fixes #645 RELNOTES=N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202048570
1 parent fd6c6fa commit 32a0ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

value/src/main/java/com/google/auto/value/processor/AutoAnnotationProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private void processMethod(ExecutableElement method) {
182182
private String getGeneratedTypeName() {
183183
return generatedAnnotation(elementUtils, processingEnv.getSourceVersion())
184184
.map(generatedAnnotation -> TypeEncoder.encode(generatedAnnotation.asType()))
185-
.orElse(null);
185+
.orElse("");
186186
}
187187

188188
/**

0 commit comments

Comments
 (0)