Skip to content

Commit

Permalink
Issue #285: added explicit default values to work around JDK bug 8322…
Browse files Browse the repository at this point in the history
…706 (#286)
  • Loading branch information
raner authored Mar 19, 2024
1 parent 8fd12e3 commit a77ea24
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// //
// Copyright 2018 - 2021 Mirko Raner //
// Copyright 2018 - 2024 Mirko Raner //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// you may not use this file except in compliance with the License. //
Expand All @@ -19,8 +19,10 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.lang.model.element.Modifier;
import pro.projo.interfaces.annotation.postprocessor.IdentityPostProcessor;
import static java.lang.annotation.ElementType.PACKAGE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static javax.tools.StandardLocation.SOURCE_OUTPUT;
import static pro.projo.interfaces.annotation.Ternary.EITHER;
import static pro.projo.interfaces.annotation.Visibility.PUBLIC;
import static pro.projo.interfaces.annotation.Visibility.PRIVATE;
Expand Down Expand Up @@ -79,7 +81,15 @@
/**
* @return additional code generation options for this interface
**/
Options options() default @Options;
Options options() default @Options
(
fileExtension = ".java",
outputLocation = SOURCE_OUTPUT,
addAnnotations = EITHER,
skip = @Unmapped(false),
postProcessor = IdentityPostProcessor.class,
typeVariableTransformer = IdentityPostProcessor.class
);

/**
* @return indication whether only static ({@link Ternary#TRUE TRUE}), only non-static
Expand Down

0 comments on commit a77ea24

Please sign in to comment.