Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract method instead of "intentional empty implementation" #55

Closed
amihaiemil opened this issue Mar 28, 2016 · 11 comments
Closed

Abstract method instead of "intentional empty implementation" #55

amihaiemil opened this issue Mar 28, 2016 · 11 comments
Assignees

Comments

@amihaiemil
Copy link
Member

In the class AbstractDynamoMojo there is the method

    /**
     * Set the project environment. This method is intentionally empty!.
     * Implementation to be provided by sub classes.
     * {@link com.jcabi.dynamodb.maven.plugin.AbstractEnviromentMojo}.
     * @throws MojoFailureException If fails
     */
    protected void environment() throws MojoFailureException {
        return;
    }

Why not make it abstract and really let all the subclasses implement it and decide whether to give an empty implementation or not?

Making it abstract would mean implementing it also in the classes StopMojo and CreateTablesMojo (also overwrite the access modifier since the 2 classes are final and can't have protected methods) .

I tried it locally and the build is successfull.

@amihaiemil
Copy link
Member Author

@dmarkov Can you do something about this pls? Thanks.

@dmarkov
Copy link

dmarkov commented Apr 4, 2016

@yegor256 take a look at this issue please and dispatch it somehow, see par.21

@yegor256 yegor256 added the bug label Apr 17, 2016
@dmarkov
Copy link

dmarkov commented Apr 18, 2016

@amihaiemil thanks for reporting! I topped your account for 15 mins, transaction AP-3J652596RY335922E

@dmarkov
Copy link

dmarkov commented Aug 29, 2016

@prondzyn can you please help? Keep in mind this. If you have any technical questions, don't hesitate to ask right here

The cost of this task is 30 mins (this is exactly how much will be paid, not less not more), when the task is done

@prondzyn
Copy link
Contributor

@dmarkov PR #58 is ready for this.

@dmarkov
Copy link

dmarkov commented Aug 30, 2016

@dmarkov PR #58 is ready for this.

@prondzyn thanks for that

@prondzyn
Copy link
Contributor

prondzyn commented Sep 5, 2016

@dmarkov I need more time. Still waiting on PR confirmation.

@dmarkov
Copy link

dmarkov commented Sep 5, 2016

@dmarkov I need more time. Still waiting on PR confirmation.

@prondzyn OK, no problem, take your time

@prondzyn
Copy link
Contributor

prondzyn commented Sep 5, 2016

@amihaiemil PR merged. Please close the task.

@amihaiemil
Copy link
Member Author

@prondzyn cool, thanks

@dmarkov
Copy link

dmarkov commented Sep 7, 2016

@prondzyn Thanks a lot, I just topped your account for 30 mins, transaction ID AP-6X588605WY200774V, total time was 187 hours and 58 mins. +30 added to your rating, at the moment it is: -30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants