Skip to content

Commit

Permalink
Reverted naming of 1st cluster with _0: too many legacy tests depends…
Browse files Browse the repository at this point in the history
… by this convention.
  • Loading branch information
lvca committed Dec 4, 2015
1 parent 7d31acf commit 498e554
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -1204,11 +1204,8 @@ private int[] createClusters(String className, int minimumClusters) {
clusterIds = new int[minimumClusters];
clusterIds[0] = database.getClusterIdByName(className);
if (clusterIds[0] == -1) {
if (minimumClusters > 1)
clusterIds[0] = database.addCluster(className + "_0");
else
// JUST KEEP THE CLASS NAME
clusterIds[0] = database.addCluster(className);
// JUST KEEP THE CLASS NAME. THIS IS FOR LEGACY REASONS
clusterIds[0] = database.addCluster(className);
}

if (minimumClusters > 1) {
Expand Down

0 comments on commit 498e554

Please sign in to comment.