Coverage Summary for Class: Partially (com.google.common.util.concurrent)

Class Class, % Method, % Line, %
Partially 0% (0/1) 0% (0/1) 0% (0/1)


1 /* 2  * Copyright (C) 2009 The Guava Authors 3  * 4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5  * in compliance with the License. You may obtain a copy of the License at 6  * 7  * http://www.apache.org/licenses/LICENSE-2.0 8  * 9  * Unless required by applicable law or agreed to in writing, software distributed under the License 10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11  * or implied. See the License for the specific language governing permissions and limitations under 12  * the License. 13  */ 14  15 package com.google.common.util.concurrent; 16  17 import com.google.common.annotations.GwtCompatible; 18 import java.lang.annotation.Documented; 19 import java.lang.annotation.ElementType; 20 import java.lang.annotation.Retention; 21 import java.lang.annotation.RetentionPolicy; 22 import java.lang.annotation.Target; 23  24 /** 25  * Outer class that exists solely to let us write {@code Partially.GwtIncompatible} instead of plain 26  * {@code GwtIncompatible}. This is more accurate for {@link Futures#catching}, which is available 27  * under GWT but with a slightly different signature. 28  * 29  * <p>We can't use {@code PartiallyGwtIncompatible} because then the GWT compiler wouldn't recognize 30  * it as a {@code GwtIncompatible} annotation. And for {@code Futures.catching}, we need the GWT 31  * compiler to autostrip the normal server method in order to expose the special, inherited GWT 32  * version. 33  */ 34 @GwtCompatible 35 @ElementTypesAreNonnullByDefault 36 final class Partially { 37  /** 38  * The presence of this annotation on an API indicates that the method <i>may</i> be used with the 39  * <a href="http://www.gwtproject.org/">Google Web Toolkit</a> (GWT) but that it has <i>some 40  * restrictions</i>. 41  */ 42  @Retention(RetentionPolicy.CLASS) 43  @Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) 44  @Documented 45  @interface GwtIncompatible { 46  String value(); 47  } 48  49  private Partially() {} 50 }