Skip to content

Commit 3bee19c

Browse files
SentryManrbygrave
andauthored
Fix cutAnnotations Edge Case (#766)
* fix cutAnnotations edge case It's hard to replicate, but in certain situations it is possible to get an OOM error when compiling * Use original formatting --------- Co-authored-by: Rob Bygrave <robin.bygrave@gmail.com>
1 parent c760071 commit 3bee19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inject-generator/src/main/java/io/avaje/inject/generator/ProcessingContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static boolean externallyProvided(String type) {
151151

152152
static void addOptionalType(String paramType, String name) {
153153
if (!CTX.get().providedTypes.contains(paramType)) {
154-
CTX.get().optionalTypes.add(ProcessorUtils.trimAnnotations(Util.addQualifierSuffixTrim(name, paramType)));
154+
CTX.get().optionalTypes.add(Util.addQualifierSuffixTrim(name, ProcessorUtils.trimAnnotations(paramType)));
155155
}
156156
}
157157

0 commit comments

Comments
 (0)