1 // Copyright 2012 The Chromium Authors 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.jni_zero; 6 7 import java.lang.annotation.ElementType; 8 import java.lang.annotation.Retention; 9 import java.lang.annotation.RetentionPolicy; 10 import java.lang.annotation.Target; 11 12 /** Applied to fields that are accessed from native via JNI. Causes R8 to not rename them. */ 13 @Target(ElementType.FIELD) 14 @Retention(RetentionPolicy.CLASS) 15 public @interface AccessedByNative { value()16 public String value() default ""; 17 } 18