From: musilto5 Date: Mon, 7 Mar 2016 19:00:21 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://rtime.felk.cvut.cz/gitweb/edu/osp-wiki.git/commitdiff_plain/0ad617331a887cb677839683d629bfc569ccf10b?ds=sidebyside --- diff --git a/student/musilto5/index.mdwn b/student/musilto5/index.mdwn index aa71dd0d..91fd6c56 100644 --- a/student/musilto5/index.mdwn +++ b/student/musilto5/index.mdwn @@ -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 ======