Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e9bbb103 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Fixed (FindBugs FS) Argument of type Long can't be handled by format (cli)

parent dc384ddf
No related branches found
No related tags found
No related merge requests found
/*
* $Id$
*
* Copyright (C) 2003-2015, 2017, INRIA
* Copyright (C) 2004, Universit de Montral
* Copyright (C) INRIA 2003-2015, 2017, 2020
* Copyright (C) Universit de Montral 2004
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
......@@ -486,7 +486,7 @@ public class GroupEval extends CommonCLI {
if ( eval.getTime() == 0 ){
writer.print("-");
} else {
formatter.format("%1.2f", eval.getTime());
formatter.format("%d", eval.getTime());
}
} else if ( format.charAt(i) == 'r' ) {
formatter.format("%1.2f", eval.getRecall());
......@@ -522,7 +522,7 @@ public class GroupEval extends CommonCLI {
if ( timeVect[k] == 0 ){
writer.print("-");
} else {
formatter.format("%1.2f", timeVect[k]);
formatter.format("%d", timeVect[k]);
}
} else if ( format.charAt(i) == 'r' ) {
formatter.format("%1.2f", recall);
......@@ -629,7 +629,7 @@ public class GroupEval extends CommonCLI {
if ( eval.getTime() == 0 ){
writer.print("-");
} else {
formatter.format("%1.2f", eval.getTime());
formatter.format("%d", eval.getTime());
}
} else if ( format.charAt(i) == 'r' ) {
formatter.format("%1.2f", eval.getRecall());
......@@ -664,7 +664,7 @@ public class GroupEval extends CommonCLI {
if ( timeVect[k] == 0 ){
writer.print("-");
} else {
formatter.format("%1.2f", timeVect[k]);
formatter.format("%d", timeVect[k]);
}
} else if ( format.charAt(i) == 'r' ) {
formatter.format("%1.2f", recall);
......
/*
* $Id$
*
* Copyright (C) 2003-2014, 2017 INRIA
* Copyright (C) 2004, Universit de Montral
* Copyright (C) INRIA 2003-2014, 2017, 2020
* Copyright (C) Universit de Montral 2004
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
......@@ -487,7 +487,7 @@ which the program does...
if ( eval.getTime() == 0 ){
writer.print("-");
} else {
formatter.format("%1.2f", eval.getTime());
formatter.format("%d", eval.getTime());
}
} else if ( format.charAt(i) == 'r' ) {
formatter.format("%1.2f", eval.getRecall());
......@@ -526,7 +526,7 @@ which the program does...
if ( timeVect[k] == 0 ){
writer.print("-");
} else {
formatter.format("%1.2f", timeVect[k]);
formatter.format("%d", timeVect[k]);
}
} else if ( format.charAt(i) == 'r' ) {
formatter.format("%1.2f", recall);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment