diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-05 06:07:05 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-05 06:44:35 +0100 |
commit | eebc5f4e851a4ce6f2775ebaf6e74794480da0b9 (patch) | |
tree | b8bbe0fe494e9e399064f25bdd18c6b3c69108b5 /src/utils/lombok | |
parent | 8cee44b3b6d39d1dd83b81358aa61aab3c655b79 (diff) | |
download | lombok-eebc5f4e851a4ce6f2775ebaf6e74794480da0b9.tar.gz lombok-eebc5f4e851a4ce6f2775ebaf6e74794480da0b9.tar.bz2 lombok-eebc5f4e851a4ce6f2775ebaf6e74794480da0b9.zip |
[javac6] replacing calls to ListBuffer add/addAll to the append variants; add/addAll do not work in j6.
Diffstat (limited to 'src/utils/lombok')
-rw-r--r-- | src/utils/lombok/javac/java8/CommentCollectingTokenizer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java b/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java index d7b1d569..7f296d83 100644 --- a/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java +++ b/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2020 The Project Lombok Authors. + * Copyright (C) 2013-2021 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -61,7 +61,7 @@ class CommentCollectingTokenizer extends JavaTokenizer { prevEndPosition = pos(); if (textBlockStarts != null && (prevEndPosition - token.pos > 5) && token.getClass().getName().endsWith("$StringToken")) { char[] start = reader.getRawCharacters(token.pos, token.pos + 3); - if (start[0] == '"' && start[1] == '"' && start[2] == '"') textBlockStarts.add(token.pos); + if (start[0] == '"' && start[1] == '"' && start[2] == '"') textBlockStarts.append(token.pos); } return token; } |