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

NotNull vs NotEmpty #2581

Closed
ErikEJ opened this issue Jul 9, 2015 · 4 comments
Closed

NotNull vs NotEmpty #2581

ErikEJ opened this issue Jul 9, 2015 · 4 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@ErikEJ
Copy link
Contributor

ErikEJ commented Jul 9, 2015

 public virtual Task<IReadOnlyList<string>> ReverseEngineerAsync(
        [NotNull] string runtimeProviderAssemblyName,
        [NotNull] string connectionString,
        [NotNull] string rootNamespace,
        [NotNull] string projectDir,
        CancellationToken cancellationToken = default(CancellationToken))
    {
        *Check.NotNull(runtimeProviderAssemblyName, nameof(runtimeProviderAssemblyName));*
        Check.NotEmpty(connectionString, nameof(connectionString));
        Check.NotEmpty(rootNamespace, nameof(rootNamespace));
        Check.NotEmpty(projectDir, nameof(projectDir));

Why check.NotNull here, and not Check.NotEmpty?

@lajones
Copy link
Contributor

lajones commented Jul 9, 2015

Correct. Should be NotEmpty. Maybe a leftover from when we passed around the actual assembly rather than it's name.

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Jul 9, 2015

@lajones I am happy to do a PR - ??

@lajones
Copy link
Contributor

lajones commented Jul 9, 2015

@ErikEJ Don't worry. I'm working in that area right now. I'll just include it on my next check-in.

@lajones lajones self-assigned this Jul 9, 2015
@rowanmiller rowanmiller added this to the 7.0.0 milestone Jul 10, 2015
@lajones
Copy link
Contributor

lajones commented Jul 15, 2015

Fixed by #2598

@lajones lajones closed this as completed Jul 15, 2015
@rowanmiller rowanmiller modified the milestones: 7.0.0, 7.0.0-beta6 Jul 15, 2015
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers modified the milestones: 1.0.0-beta6, 1.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

4 participants