PrivacySource and PrivacySink annotations

Reviewed By: mburman

Differential Revision: D3170929

fb-gh-sync-id: c594902
fbshipit-source-id: c594902
master
Sam Blackshear 9 years ago committed by Facebook Github Bot 9
parent e1020c8ebe
commit 607621920f

@ -0,0 +1,23 @@
/*
* Copyright (c) 2004 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.infer.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.CLASS)
@Target(
ElementType.PARAMETER // a privacy source should not flow to this parameter
)
public @interface PrivacySink {
}

@ -0,0 +1,25 @@
/*
* Copyright (c) 2004 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.infer.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.CLASS)
@Target(value={
ElementType.METHOD, // method returns something private
ElementType.PARAMETER, // parameter is private
ElementType.FIELD, // field is private
})
public @interface PrivacySource {
}
Loading…
Cancel
Save