/* * 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 {}