[merge] Fix LineBlocksTest: TextDiffTypeEnum can be null.

This commit is contained in:
Kirill Likhodedov
2012-06-04 16:24:08 +04:00
parent 197d45e76a
commit 2dd21e1213
@@ -52,7 +52,7 @@ public class TextDiffType implements DiffStatusBar.LegendTypeDescriptor {
private final String myDisplayName;
private final boolean myApplied;
public static TextDiffType create(@NotNull final TextDiffTypeEnum type) {
public static TextDiffType create(@Nullable final TextDiffTypeEnum type) {
if (TextDiffTypeEnum.INSERT.equals(type)) {
return INSERT;
} else if (TextDiffTypeEnum.CHANGED.equals(type)) {