Skip to content

Commit

Permalink
[dbs-leipzig#1559] Code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrizZz110 committed Apr 5, 2022
1 parent 943d90b commit 709e397
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public void testGraphDensity() throws Exception {
// density should not be 0
assertTrue("Graph density is 0", density > 0.);
// density for social network graph should be (24 / 11 * 10) = 0.21818...
assertEquals("Computed graph density is incorrect", (24d / 110d), density, 0.0);
assertEquals("Computed graph density is incorrect", 24d / 110d, density, 0.0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void reduce(Iterable<Tuple2<GradoopId, TreeMap<Long, Integer>>> iterable,
case AVG:
opt = vertexDegrees.values().stream().reduce(Math::addExact);
opt.ifPresent(integer -> collector.collect(
new Tuple2<>(timePoint, (int) Math.ceil( (double) integer / (double) numberOfVertices))));
new Tuple2<>(timePoint, (int) Math.ceil((double) integer / (double) numberOfVertices))));
break;
default:
throw new IllegalArgumentException("Aggregate type not specified.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class TransformDeltaToAbsoluteDegreeTree
/**
* To reduce object instantiations.
*/
TreeMap<Long, Integer> absoluteDegreeTree;
private TreeMap<Long, Integer> absoluteDegreeTree;

@Override
public Tuple2<GradoopId, TreeMap<Long, Integer>> map(
Expand Down

0 comments on commit 709e397

Please sign in to comment.