Skip to content

Privacy Imports #12

Description

@mateor

CollegeDev handles this a little differently, but all privacy imports (for ease of patching) should go right at the top of the file, under package.

So:

/*
 * Copyright (C) 2008 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.
 */

package android.telephony;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
BEGIN PRIVACY

I have seen too many patch failures at dumb places like this. This is what broke our patches between 4.1.1 and 4.1.2, they imported a new class and it fudged our patches. If we standardize like the above, that goes away. I have seen it many times, it is not infrequent. And it should not be at the end, because that code changes often as well. At the top, the only time it will break is if they move the location, which will break them anyway.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions