Formatted code.

This commit is contained in:
Christian P. MOMON 2020-03-05 03:50:04 +01:00
parent 0f58eccab9
commit 8d177e5f35
1 changed files with 31 additions and 31 deletions

View File

@ -38,34 +38,6 @@ public class IssueStatusChartView
{
private static Logger logger = LoggerFactory.getLogger(IssueStatusChartView.class);
/**
* Builds the grouped.
*
* @param title
* the title
* @param project
* the project
* @return the string
* @throws AgirStatoolException
* the agir statool exception
*/
public static String buildGrouped(final String title, final Project project) throws AgirStatoolException
{
String result;
StringList labels = new StringList("Maybe", "Active", "Resolved");
StringList values = new StringList();
values.append(project.issueStats().getMaybeCount());
values.append(project.issueStats().getActiveCount());
values.append(project.issueStats().getResolvedCount());
String targetTitle = title + " " + project.getName();
result = build(targetTitle, targetTitle, labels, values);
//
return result;
}
/**
* Builds the.
*
@ -80,7 +52,7 @@ public class IssueStatusChartView
public static String build(final String title, final Project project) throws AgirStatoolException
{
String result;
StringList labels = new StringList("Maybe", "New", "Confirmed", "Ongoing", "Waiting", "Resolved");
StringList values = new StringList();
values.append(project.issueStats().getMaybeCount());
@ -89,10 +61,10 @@ public class IssueStatusChartView
values.append(project.issueStats().getOngoingCount());
values.append(project.issueStats().getWaitingCount());
values.append(project.issueStats().getResolvedCount());
String targetTitle = title + " " + project.getName();
result = build(targetTitle, targetTitle, labels, values);
//
return result;
}
@ -136,4 +108,32 @@ public class IssueStatusChartView
//
return result;
}
/**
* Builds the grouped.
*
* @param title
* the title
* @param project
* the project
* @return the string
* @throws AgirStatoolException
* the agir statool exception
*/
public static String buildGrouped(final String title, final Project project) throws AgirStatoolException
{
String result;
StringList labels = new StringList("Maybe", "Active", "Resolved");
StringList values = new StringList();
values.append(project.issueStats().getMaybeCount());
values.append(project.issueStats().getActiveCount());
values.append(project.issueStats().getResolvedCount());
String targetTitle = title + " " + project.getName();
result = build(targetTitle, targetTitle, labels, values);
//
return result;
}
}