我正在阅读https://source.android.com/source/code-style.html中的代码样式,它说:
每个文件的顶部都应有版权声明
然后给出这个例子:
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
我意识到他们可能在谈论添加到 AOSP 中的类,但我想在我自己的“私人”文件的顶部放置一个版权声明。建议为我的 Android 应用程序/类/自定义视图输入什么作为版权声明?我想让它们保密而不是开源?我知道这可能是一个模糊的问题,但版权一直让我感到困惑。感谢有关该主题的任何帮助。