]> rtime.felk.cvut.cz Git - edu/osp-wiki.git/commitdiff
(no commit message)
authormusilto5 <musilto5@web>
Mon, 7 Mar 2016 19:00:21 +0000 (20:00 +0100)
committerOSP robot <osp@rtime.felk.cvut.cz>
Mon, 7 Mar 2016 19:00:21 +0000 (20:00 +0100)
student/musilto5/index.mdwn

index aa71dd0d7d57e92d939f9fe8a44d79cf17670293..91fd6c56bd0dadf0535c69c5e7494f8cd49bd702 100644 (file)
@@ -5,7 +5,9 @@
 Assignment
 ======
 
-Description of my planned/completed work for the project
+I read the code of generating statistics. There were some bad programming practise used. So I decided to do some refactoring:
+There is int variable called mType which can have only three values. I decided to create enum called AxisType and replace type of mType.
+There is method calculateDone in Stats.java. Second method variable is boolean. The function of boolean is not described in javadoc. I decided replace boolean by Chartype and make the method private. Then two public methods will be created: calculateReviewCount and calculateReviewTime. This two new methods will use method calculateDone.
 
 Links documenting the results of my work
 ======