Skip to content

PrimeNumbersTask example doesn't compile #1

Description

@shnplr
  1. There is no default constructor in AbstractTask i.e. the example should call super(String).

    public PrimeNumbersTask(int numbersToFind) {
    super("")
    //initialize
    }

  2. The return type of execute does not match the interface definition <V, C>
    i.e. shouldn't it return a List?

    @OverRide
    public List execute(Tracker tracker) throws Exception {
    while (!enough && !isCancelled()) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions