Skip to content

Why use "//" instead of "/* ... */" for Java and Kotlin? #65

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

Closed
fstanis opened this issue Mar 25, 2021 · 1 comment
Closed

Why use "//" instead of "/* ... */" for Java and Kotlin? #65

fstanis opened this issue Mar 25, 2021 · 1 comment

Comments

@fstanis
Copy link

fstanis commented Mar 25, 2021

It seems the majority of Java projects puts the license on top of the file via multiple comments /* ... */, but addlicense uses // for Java and Kotlin:

addlicense/main.go

Lines 220 to 221 in a029431

case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".java", ".m", ".mm", ".proto", ".rs", ".scala", ".swift", ".dart", ".groovy", ".kt", ".kts", ".v", ".sv":
lic, err = prefix(tmpl, data, "", "// ", "")

Is there any reason for this? If not, I think we should move .java, .kt and .kts a few lines above with other languages that use /* ... */.

@willnorris
Copy link
Collaborator

Closing as duplicate of #46, and will continue discussion there.

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

No branches or pull requests

2 participants