Skip to content

Commit cb10752

Browse files
committed
Minor fix
1 parent 5b4fa27 commit cb10752

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
USE spade;
12
create or replace view artifactView as select wi.name, wi.description, wi.created, wi.url, a.id as id, a.artifactClass, a.mimeType, a.size, p.id as authorId, p.name as authorName, p.projectId from work_item wi join artifact a on a.id = wi.id join personView p on p.id = wi.authorId;
23
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/TooLongSprintDetectorImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private Integer getMaxNumberOfTooLongIterations(){
6464
* 1) najít všechny iterace danného projektu
6565
* 2) odebrat první a poslední iteraci ( ty mohou být z důvodu nastartování projektu dlouhé)
6666
* 3) zjistit jejich délku (rozdíl mezi start date a end date)
67-
* 4) pokud iterace přesháne délku 21 dní (3 týdny), tak jsou označeny jako moc dlouhé
67+
* 4) pokud iterace přesháne délku 21 dní (nastavitelná prahová hodnota), tak jsou označeny jako moc dlouhé
6868
* 5) pokud je nalezena jedna nebo více iterací jako dlouhé, tak je anti pattern detekován
6969
*
7070
* @param project analyzovaný project
@@ -89,7 +89,7 @@ public QueryResultItem analyze(Project project, DatabaseConnection databaseConne
8989
totalCountOfIteration++;
9090
if (!iterationLengths.containsKey("iterationLength") || iterationLengths.get("iterationLength") == null)
9191
continue;
92-
int iterationLength = (int) iterationLengths.get("iterationLength");
92+
int iterationLength = ((Long) iterationLengths.get("iterationLength")).intValue();
9393
if (iterationLength > maxIterationLength) {
9494
numberOfLongIterations++;
9595
}

0 commit comments

Comments
 (0)