Skip to content

Commit

Permalink
Don't mark generated linked atomic queues as final
Browse files Browse the repository at this point in the history
Reported in JCTools#208, fixed but subsequent regressed as fix edited generated
source. This change should fix it permanently.
  • Loading branch information
kay committed Mar 3, 2019
1 parent 80e4e65 commit 0029a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -551,14 +551,16 @@ public static void main(String[] args) throws Exception {
}
outputFileName += ".java";

File outputFile = new File(outputDirectory, outputFileName);
try {
writer = new FileWriter(new File(outputDirectory, outputFileName));
writer = new FileWriter(outputFile);
writer.write(cu.toString());
} finally {
if (writer != null) {
writer.close();
}
}
System.out.println("Saved to " + outputFile);
}
}

Expand Down
Expand Up @@ -89,7 +89,6 @@ public void visit(ClassOrInterfaceDeclaration node, Void arg) {
* Special case for MPSC
*/
node.removeModifier(Modifier.ABSTRACT);
node.addModifier(Modifier.FINAL);
}

if (isCommentPresent(node, GEN_DIRECTIVE_CLASS_CONTAINS_ORDERED_FIELD_ACCESSORS)) {
Expand Down

0 comments on commit 0029a28

Please sign in to comment.