You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
671 B
19 lines
671 B
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
package com.moblica.common.xmob.utils;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Target;
|
|
|
|
/*
|
|
* add this annotation to a field to tell the static analyser that it should not be mutated, making
|
|
* tighter restrictions than normal. e.g. an @Immutable array can't have elements reassigned or to a
|
|
* method to tell that the return value shouldn't be mutated past that point
|
|
*/
|
|
@Target({ElementType.FIELD, ElementType.METHOD})
|
|
public @interface Immutable {}
|