[vcs-log] rename PermanentCommitsInfoIml -> PermanentCommitsInfoImpl
authorJulia Beliaeva <julia.beliaeva@jetbrains.com>
Sat, 23 Jan 2016 12:20:16 +0000 (15:20 +0300)
committerJulia Beliaeva <julia.beliaeva@jetbrains.com>
Sat, 23 Jan 2016 12:20:16 +0000 (15:20 +0300)
platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/facade/PermanentGraphImpl.java
platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.java [moved from platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoIml.java with 89% similarity]
platform/vcs-log/graph/test/com/intellij/vcs/log/graph/impl/permanent/GraphBuilderHashIndexTest.java

index 5a1bb3e77f1f7ce69f191a3b106328af57f8c021..2409cc5382c67c0b96f3f3e44560fc6d87303ba8 100644 (file)
@@ -57,8 +57,8 @@ public class PermanentGraphImpl<CommitId> implements PermanentGraph<CommitId>, P
       }
     });
 
-    final PermanentCommitsInfoIml<CommitId> commitIdPermanentCommitsInfo =
-      PermanentCommitsInfoIml.newInstance(graphCommits, notLoadCommits);
+    final PermanentCommitsInfoImpl<CommitId> commitIdPermanentCommitsInfo =
+      PermanentCommitsInfoImpl.newInstance(graphCommits, notLoadCommits);
 
     GraphLayoutImpl permanentGraphLayout = GraphLayoutBuilder.build(linearGraph, new Comparator<Integer>() {
       @Override
@@ -73,7 +73,7 @@ public class PermanentGraphImpl<CommitId> implements PermanentGraph<CommitId>, P
                                             branchesCommitId);
   }
 
-  @NotNull private final PermanentCommitsInfoIml<CommitId> myPermanentCommitsInfo;
+  @NotNull private final PermanentCommitsInfoImpl<CommitId> myPermanentCommitsInfo;
   @NotNull private final PermanentLinearGraphImpl myPermanentLinearGraph;
   @NotNull private final GraphLayoutImpl myPermanentGraphLayout;
   @NotNull private final GraphColorManager<CommitId> myGraphColorManager;
@@ -84,7 +84,7 @@ public class PermanentGraphImpl<CommitId> implements PermanentGraph<CommitId>, P
 
   public PermanentGraphImpl(@NotNull PermanentLinearGraphImpl permanentLinearGraph,
                             @NotNull GraphLayoutImpl permanentGraphLayout,
-                            @NotNull PermanentCommitsInfoIml<CommitId> permanentCommitsInfo,
+                            @NotNull PermanentCommitsInfoImpl<CommitId> permanentCommitsInfo,
                             @NotNull GraphColorManager<CommitId> graphColorManager,
                             @NotNull Set<CommitId> branchesCommitId) {
     myPermanentGraphLayout = permanentGraphLayout;
@@ -213,7 +213,7 @@ public class PermanentGraphImpl<CommitId> implements PermanentGraph<CommitId>, P
   }
 
   @NotNull
-  public PermanentCommitsInfoIml<CommitId> getPermanentCommitsInfo() {
+  public PermanentCommitsInfoImpl<CommitId> getPermanentCommitsInfo() {
     return myPermanentCommitsInfo;
   }
 
similarity index 89%
rename from platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoIml.java
rename to platform/vcs-log/graph/src/com/intellij/vcs/log/graph/impl/permanent/PermanentCommitsInfoImpl.java
index 0e3984a7332f399c1d0b5258c6c3f91e1d99aada..f1ad48532704cba020ee1363c613e9b71da5457c 100644 (file)
@@ -29,12 +29,12 @@ import org.jetbrains.annotations.NotNull;
 
 import java.util.*;
 
-public class PermanentCommitsInfoIml<CommitId> implements PermanentCommitsInfo<CommitId> {
-  private static final Logger LOG = Logger.getInstance(PermanentCommitsInfoIml.class);
+public class PermanentCommitsInfoImpl<CommitId> implements PermanentCommitsInfo<CommitId> {
+  private static final Logger LOG = Logger.getInstance(PermanentCommitsInfoImpl.class);
 
   @NotNull
-  public static <CommitId> PermanentCommitsInfoIml<CommitId> newInstance(@NotNull final List<? extends GraphCommit<CommitId>> graphCommits,
-                                                                         @NotNull Map<Integer, CommitId> notLoadCommits) {
+  public static <CommitId> PermanentCommitsInfoImpl<CommitId> newInstance(@NotNull final List<? extends GraphCommit<CommitId>> graphCommits,
+                                                                          @NotNull Map<Integer, CommitId> notLoadCommits) {
     TimestampGetter timestampGetter = IntTimestampGetter.newInstance(new TimestampGetter() {
       @Override
       public int size() {
@@ -61,7 +61,7 @@ public class PermanentCommitsInfoIml<CommitId> implements PermanentCommitsInfo<C
         }
       });
     }
-    return new PermanentCommitsInfoIml<CommitId>(timestampGetter, commitIdIndex, notLoadCommits);
+    return new PermanentCommitsInfoImpl<CommitId>(timestampGetter, commitIdIndex, notLoadCommits);
   }
 
   @NotNull
@@ -97,9 +97,9 @@ public class PermanentCommitsInfoIml<CommitId> implements PermanentCommitsInfo<C
 
   @NotNull private final Map<Integer, CommitId> myNotLoadCommits;
 
-  public PermanentCommitsInfoIml(@NotNull TimestampGetter timestampGetter,
-                                 @NotNull List<CommitId> commitIdIndex,
-                                 @NotNull Map<Integer, CommitId> notLoadCommits) {
+  public PermanentCommitsInfoImpl(@NotNull TimestampGetter timestampGetter,
+                                  @NotNull List<CommitId> commitIdIndex,
+                                  @NotNull Map<Integer, CommitId> notLoadCommits) {
     myTimestampGetter = timestampGetter;
     myCommitIdIndexes = commitIdIndex;
     myNotLoadCommits = notLoadCommits;
index 0617058819261320d782e0488c10d450fd9d01e9..39b55c3b7a8db0006dfced1ae958afb5a725cbdb 100644 (file)
@@ -38,7 +38,7 @@ public abstract class GraphBuilderHashIndexTest<CommitId> extends AbstractTestWi
   @Override
   protected void runTest(String in, String out) {
     final List<GraphCommit<CommitId>> commits = getCommitIdManager().parseCommitList(in);
-    PermanentCommitsInfo<CommitId> commitsInfo = PermanentCommitsInfoIml.newInstance(commits, Collections.<Integer, CommitId>emptyMap());
+    PermanentCommitsInfo<CommitId> commitsInfo = PermanentCommitsInfoImpl.newInstance(commits, Collections.<Integer, CommitId>emptyMap());
 
     assertEquals(out, commitsInfoToStr(commitsInfo, commits.size(), getCommitIdManager().getToStrFunction()));
   }