"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/net/sourceforge/plantuml/project3/GanttDiagram.java" between
plantuml-1.2019.11.tar.gz and plantuml-1.2019.12.tar.gz

About: PlantUML is a tool (written in Java) to draw UML diagrams, using a simple and human readable text description. Sources.

GanttDiagram.java  (plantuml-1.2019.11):GanttDiagram.java  (plantuml-1.2019.12)
skipping to change at line 589 skipping to change at line 589
int percentage = 100; int percentage = 100;
if (m.group(3) != null) { if (m.group(3) != null) {
percentage = Integer.parseInt(m.group(3)); percentage = Integer.parseInt(m.group(3));
} }
result.addResource(resource, percentage); result.addResource(resource, percentage);
} }
public Resource getResource(String resourceName) { public Resource getResource(String resourceName) {
Resource resource = resources.get(resourceName); Resource resource = resources.get(resourceName);
if (resource == null) { if (resource == null) {
resource = new Resource(resourceName, getDefaultPlan()); resource = new Resource(resourceName, getDefaultPlan(), g etCalendarSimple());
} }
resources.put(resourceName, resource); resources.put(resourceName, resource);
return resource; return resource;
} }
public int getLoadForResource(Resource res, Instant i) { public int getLoadForResource(Resource res, Instant i) {
int result = 0; int result = 0;
for (Task task : tasks.values()) { for (Task task : tasks.values()) {
if (task instanceof TaskSeparator) { if (task instanceof TaskSeparator) {
continue; continue;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)