// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.gerrit.server.index.change;

import static com.google.gerrit.server.index.SchemaUtil.schema;

import com.google.gerrit.server.index.Schema;
import com.google.gerrit.server.index.SchemaDefinitions;
import com.google.gerrit.server.query.change.ChangeData;

public class ChangeSchemaDefinitions extends SchemaDefinitions<ChangeData> {
  @Deprecated
  static final Schema<ChangeData> V25 = schema(
      ChangeField.LEGACY_ID,
      ChangeField.ID,
      ChangeField.STATUS,
      ChangeField.PROJECT,
      ChangeField.PROJECTS,
      ChangeField.REF,
      ChangeField.EXACT_TOPIC,
      ChangeField.FUZZY_TOPIC,
      ChangeField.UPDATED,
      ChangeField.FILE_PART,
      ChangeField.PATH,
      ChangeField.OWNER,
      ChangeField.LEGACY_REVIEWER,
      ChangeField.COMMIT,
      ChangeField.TR,
      ChangeField.LABEL,
      ChangeField.COMMIT_MESSAGE,
      ChangeField.COMMENT,
      ChangeField.CHANGE,
      ChangeField.APPROVAL,
      ChangeField.MERGEABLE,
      ChangeField.ADDED,
      ChangeField.DELETED,
      ChangeField.DELTA,
      ChangeField.HASHTAG,
      ChangeField.COMMENTBY,
      ChangeField.PATCH_SET,
      ChangeField.GROUP,
      ChangeField.SUBMISSIONID,
      ChangeField.EDITBY,
      ChangeField.REVIEWEDBY,
      ChangeField.EXACT_COMMIT,
      ChangeField.AUTHOR,
      ChangeField.COMMITTER);

  @Deprecated
  static final Schema<ChangeData> V26 = schema(V25, ChangeField.DRAFTBY);

  @Deprecated
  static final Schema<ChangeData> V27 = schema(V26.getFields().values());

  @Deprecated
  static final Schema<ChangeData> V28 = schema(V27, ChangeField.STARREDBY);

  @Deprecated
  static final Schema<ChangeData> V29 =
      schema(V28, ChangeField.HASHTAG_CASE_AWARE);

  @Deprecated
  static final Schema<ChangeData> V30 =
      schema(V29, ChangeField.STAR, ChangeField.STARBY);

  @Deprecated
  static final Schema<ChangeData> V31 = new Schema.Builder<ChangeData>()
      .add(V30)
      .remove(ChangeField.STARREDBY)
      .build();

  @Deprecated
  static final Schema<ChangeData> V32 = new Schema.Builder<ChangeData>()
      .add(V31)
      .remove(ChangeField.LEGACY_REVIEWER)
      .add(ChangeField.REVIEWER)
      .build();

  @SuppressWarnings("deprecation")
  static final Schema<ChangeData> V33 =
      schema(V32, ChangeField.ASSIGNEE);

  public static final String NAME = "changes";
  public static final ChangeSchemaDefinitions INSTANCE =
      new ChangeSchemaDefinitions();

  private ChangeSchemaDefinitions() {
    super(NAME, ChangeData.class);
  }
}

@@ -2797,43 +2797,8 @@
 );%0A%0A
-  @SuppressWarnings(%22deprecation%22)%0A
   st

Remove unnecessary suppression