Skip to content

Commit 69c63f1

Browse files
committed
Remove redundant casts
1 parent 5ec6be6 commit 69c63f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/ldbc/snb/datagen/dictionary/FlashmobTagDictionary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private void initialize() {
136136
double currentProb = 0.0;
137137
for (int i = 0; i < size; ++i) {
138138
flashmobTagCumDist[i].prob = currentProb;
139-
currentProb += (double) (flashmobTagCumDist[i].level) / (double) (sumLevels);
139+
currentProb += (double) (flashmobTagCumDist[i].level) / sumLevels;
140140
}
141141
}
142142

src/main/java/ldbc/snb/datagen/generator/generators/knowsgenerators/ClusteringKnowsGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private Community findSolution(List<Person> persons, int begin, int last) {
143143
PersonInfo pInfo = new PersonInfo();
144144
pInfo.index_ = i;
145145
pInfo.degree_ = Knows.targetEdges(p, percentages, stepIndex);
146-
pInfo.original_degree_ = (long) (p.maxNumKnows());
146+
pInfo.original_degree_ = p.maxNumKnows();
147147
nodes.add(pInfo);
148148
}
149149

0 commit comments

Comments
 (0)