1. Removed redundant variable
This commit is contained in:
parent
8c798e40d1
commit
0607ce9128
2 changed files with 1 additions and 5 deletions
|
@ -123,7 +123,6 @@ public class CoAuthorshipVisCodeGenerator {
|
||||||
sparklineData.setNumOfYearsToBeRendered(numOfYearsToBeRendered);
|
sparklineData.setNumOfYearsToBeRendered(numOfYearsToBeRendered);
|
||||||
|
|
||||||
int uniqueCoAuthorCounter = 0;
|
int uniqueCoAuthorCounter = 0;
|
||||||
int renderedFullSparks = 0;
|
|
||||||
Set<Node> allCoAuthorsWithKnownAuthorshipYears = new HashSet<Node>();
|
Set<Node> allCoAuthorsWithKnownAuthorshipYears = new HashSet<Node>();
|
||||||
List<YearToEntityCountDataElement> yearToUniqueCoauthorsCountDataTable = new ArrayList<YearToEntityCountDataElement>();
|
List<YearToEntityCountDataElement> yearToUniqueCoauthorsCountDataTable = new ArrayList<YearToEntityCountDataElement>();
|
||||||
|
|
||||||
|
@ -146,7 +145,6 @@ public class CoAuthorshipVisCodeGenerator {
|
||||||
yearToUniqueCoauthorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoAuthorCounter,
|
yearToUniqueCoauthorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoAuthorCounter,
|
||||||
publicationYearAsString,
|
publicationYearAsString,
|
||||||
currentUniqueCoAuthors));
|
currentUniqueCoAuthors));
|
||||||
renderedFullSparks += currentUniqueCoAuthors;
|
|
||||||
uniqueCoAuthorCounter++;
|
uniqueCoAuthorCounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +154,7 @@ public class CoAuthorshipVisCodeGenerator {
|
||||||
* Sparks that will be rendered in full mode will always be the one's which have any year
|
* Sparks that will be rendered in full mode will always be the one's which have any year
|
||||||
* associated with it. Hence.
|
* associated with it. Hence.
|
||||||
* */
|
* */
|
||||||
sparklineData.setRenderedSparks(renderedFullSparks);
|
sparklineData.setRenderedSparks(allCoAuthorsWithKnownAuthorshipYears.size());
|
||||||
|
|
||||||
sparklineData.setYearToEntityCountDataTable(yearToUniqueCoauthorsCountDataTable);
|
sparklineData.setYearToEntityCountDataTable(yearToUniqueCoauthorsCountDataTable);
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,6 @@ public class CoPIVisCodeGenerator {
|
||||||
sparklineData.setNumOfYearsToBeRendered(numOfYearsToBeRendered);
|
sparklineData.setNumOfYearsToBeRendered(numOfYearsToBeRendered);
|
||||||
|
|
||||||
int uniqueCoPICounter = 0;
|
int uniqueCoPICounter = 0;
|
||||||
int renderedFullSparks = 0;
|
|
||||||
Set<CoPINode> allCoPIsWithKnownGrantShipYears = new HashSet<CoPINode>();
|
Set<CoPINode> allCoPIsWithKnownGrantShipYears = new HashSet<CoPINode>();
|
||||||
List<YearToEntityCountDataElement> yearToUniqueInvestigatorsCountDataTable = new ArrayList<YearToEntityCountDataElement>();
|
List<YearToEntityCountDataElement> yearToUniqueInvestigatorsCountDataTable = new ArrayList<YearToEntityCountDataElement>();
|
||||||
|
|
||||||
|
@ -156,7 +155,6 @@ public class CoPIVisCodeGenerator {
|
||||||
grantYearAsString,
|
grantYearAsString,
|
||||||
currentUniqueCoPIs));
|
currentUniqueCoPIs));
|
||||||
|
|
||||||
renderedFullSparks += currentUniqueCoPIs;
|
|
||||||
uniqueCoPICounter++;
|
uniqueCoPICounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue