Skip to content

Commit 4d8602b

Browse files
committed
Document shaded jar consumer fixture
1 parent eec0638 commit 4d8602b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/test/compiler/graphql/execution/ShadedJarConsumer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package graphql.execution;
22

3+
/**
4+
* Compilation fixture used only by the {@code compileShadedJarConsumer} Gradle task.
5+
*
6+
* <p>Calling {@link ExecutionContext#getOperationDirectives()} forces javac to inspect the
7+
* shaded {@code ImmutableList} in its generic return type. The task compiles this fixture
8+
* against the completed JAR with {@code -Xlint:classfile -Werror}, turning unresolved
9+
* annotation references in shaded class files into a build failure.</p>
10+
*/
311
public class ShadedJarConsumer {
412

513
public Object getOperationDirectives(ExecutionContext executionContext) {

0 commit comments

Comments
 (0)