/*
 * Copyright 2000-2014 JetBrains s.r.o.
 *
 * 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.intellij.vcs.log.graph.api.elements;

import org.jetbrains.annotations.NotNull;

public enum GraphNodeType {
  USUAL(0),
  NOT_LOAD_COMMIT(-1),
  GRAY(1);

  private final byte myType;

  GraphNodeType(int type) {
    myType = (byte)type;
  }

  public byte getType() {
    return myType;
  }

  @NotNull
  public static GraphNodeType getByType(byte type) {
    switch (type) {
      case 0: return USUAL;
      case -1: return NOT_LOAD_COMMIT;
      case 1: return GRAY;
    }
    throw new IllegalArgumentException("Unknown type: " + type);
  }

}

@@ -648,51 +648,8 @@
 s;%0A%0A
-import org.jetbrains.annotations.NotNull;%0A%0A
 publ
@@ -683,11 +683,8 @@
 SUAL
-(0)
 ,%0A  
@@ -702,20 +702,16 @@
 MMIT
-(-1)
 ,%0A  GRAY
 (1);
@@ -710,404 +710,8 @@
 GRAY
-(1);%0A%0A  private final byte myType;%0A%0A  GraphNodeType(int type) %7B%0A    myType = (byte)type;%0A  %7D%0A%0A  public byte getType() %7B%0A    return myType;%0A  %7D%0A%0A  @NotNull%0A  public static GraphNodeType getByType(byte type) %7B%0A    switch (type) %7B%0A      case 0: return USUAL;%0A      case -1: return NOT_LOAD_COMMIT;%0A      case 1: return GRAY;%0A    %7D%0A    throw new IllegalArgumentException(%22Unknown type: %22 + type);%0A  %7D%0A
+;
 %0A%7D%0A

Remove unused code.