From 03d4b7df58e6d21c04ca3444dc70aec4cc68b1fe Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Thu, 11 Oct 2018 14:34:29 +0300 Subject: [PATCH] vcs: cleanup - use util method --- .../vcs/changes/actions/diff/ChangeDiffRequestProducer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/diff/ChangeDiffRequestProducer.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/diff/ChangeDiffRequestProducer.java index 441c3f157a8f..bea5ef3698eb 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/diff/ChangeDiffRequestProducer.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/diff/ChangeDiffRequestProducer.java @@ -415,10 +415,8 @@ public class ChangeDiffRequestProducer implements DiffRequestProducer, ChangeDif @NotNull public static String getRequestTitle(@NotNull Change change) { - ContentRevision bRev = change.getBeforeRevision(); - ContentRevision aRev = change.getAfterRevision(); - FilePath bPath = bRev != null ? bRev.getFile() : null; - FilePath aPath = aRev != null ? aRev.getFile() : null; + FilePath bPath = ChangesUtil.getBeforePath(change); + FilePath aPath = ChangesUtil.getAfterPath(change); return DiffRequestFactoryImpl.getTitle(bPath, aPath, DIFF_TITLE_RENAME_SEPARATOR); }