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

License scan for Domain.java will return public-domain because of the constructor #2013

Closed
chinyeungli opened this issue Apr 20, 2020 · 1 comment

Comments

@chinyeungli
Copy link
Contributor

Description

If a java file is named "Domain.java", the licesne scan will return public-domain as a detected license because of the constructor statement
i.e.

public Domain () {
...
}}}

For instance,
https://introcs.cs.princeton.edu/java/42sort/Domain.java.html

Scancode should be smart enough to tell this is a constructor statement instead of comment/notice etc.

@pombredanne
Copy link
Member

This has been fixed and merged in develop.

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

2 participants