OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.base.annotations; |
| 6 |
| 7 import java.lang.annotation.ElementType; |
| 8 import java.lang.annotation.Target; |
| 9 |
| 10 /** |
| 11 * Annotation used to indicate to proguard methods that have no side effects and
can be |
| 12 * safely removed if their return value is not used. This is to be used with |
| 13 * {@link org.chromium.base.Log}'s method, that can also be removed by proguard.
That way |
| 14 * expensive calls can be left in debug builds but removed in release. |
| 15 */ |
| 16 @Target({ElementType.METHOD, ElementType.CONSTRUCTOR}) |
| 17 public @interface NoSideEffects {} |
OLD | NEW |