1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2008 Google Inc. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 package com.google.protobuf; 9 10 import static java.lang.annotation.RetentionPolicy.CLASS; 11 12 import java.lang.annotation.Documented; 13 import java.lang.annotation.ElementType; 14 import java.lang.annotation.Retention; 15 import java.lang.annotation.Target; 16 17 /** 18 * Annotation for method parameter and class field declarations, which denotes that corresponding 19 * actual values must be compile-time constant expressions. 20 */ 21 @Documented 22 @Retention(CLASS) 23 @Target({ElementType.PARAMETER, ElementType.FIELD}) 24 @interface CompileTimeConstant {} 25