Merge "Suppress deprecation warnings related to ChangeField.SORTKEY"

This commit is contained in:
Shawn Pearce
2013-08-20 00:12:37 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ import java.util.Map;
/** Secondary index schemas for changes. */
public class ChangeSchemas {
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
static final Schema<ChangeData> V1 = release(
ChangeField.LEGACY_ID,
ChangeField.ID,

View File

@@ -25,6 +25,7 @@ import com.google.inject.Provider;
public abstract class SortKeyPredicate extends IndexPredicate<ChangeData> {
protected final Provider<ReviewDb> dbProvider;
@SuppressWarnings("deprecation")
SortKeyPredicate(Provider<ReviewDb> dbProvider, String name, String value) {
super(ChangeField.SORTKEY, name, value);
this.dbProvider = dbProvider;