Skip to content

Commit f309a2f

Browse files
Apply review suggestion to java.rst
Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com>
1 parent bd67a38 commit f309a2f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • airflow-core/docs/authoring-and-scheduling/language-sdks

airflow-core/docs/authoring-and-scheduling/language-sdks/java.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ Implement the ``Task`` interface directly for full control over how tasks are re
206206
read.
207207

208208
The runner creates a fresh instance of the task class through reflection for every task-instance run,
209-
which puts three constraints on the class. It must be:
209+
which puts three constraints on the class:
210210

211-
* Concrete: not abstract and not an interface.
212-
* A public no-argument constructor.
213-
* If nested inside another class, it must be ``static`` class.
211+
* It must be concrete: not abstract and not an interface.
212+
* It must declare a public no-argument constructor.
213+
* If nested inside another class, it must be a ``static`` nested class.
214214

215215
A class that violates any of these fails at runtime with a ``Cannot instantiate task class`` error in the
216216
task log.

0 commit comments

Comments
 (0)