Fix NodeParcelable, meta-annotate @PublicApi

This commit is contained in:
mar-v-in 2015-01-26 00:42:56 +01:00
parent 61d5ccde6c
commit 3c19d84eaa
2 changed files with 9 additions and 0 deletions

View File

@ -76,4 +76,6 @@ public class NodeParcelable extends AutoSafeParcelable implements Node {
public String toString() { public String toString() {
return "NodeParcelable{" + id + "," + displayName + "}"; return "NodeParcelable{" + id + "," + displayName + "}";
} }
public static final Creator<NodeParcelable> CREATOR = new AutoCreator<>(NodeParcelable.class);
} }

View File

@ -16,10 +16,17 @@
package org.microg.gms; package org.microg.gms;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** /**
* An class, method or field is named public, if it can be used with the original play services * An class, method or field is named public, if it can be used with the original play services
* client library. * client library.
*/ */
@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
public @interface PublicApi { public @interface PublicApi {
/** /**
* @return the first version that contains the given class, method or field * @return the first version that contains the given class, method or field