Improved: Updated plugin code to fix console warning related to deprecated method. Removed Double constructor call as its depracated since jdk 9. Also replace the CellType::getCellTypeEnum method call with CellTyoe::getCellType

(OFBIZ-10757)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1853904 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Deepak Dixit
2019-02-19 17:30:35 +00:00
parent c7f9cbdd0c
commit 5579e37bde
8 changed files with 38 additions and 38 deletions
@@ -62,7 +62,7 @@ public class Various {
List<GenericValue> standards = task.getRelated("WorkEffortSkillStandard", null, null, false);
for (GenericValue standard : standards) {
if (standard.getDouble("estimatedNumPeople") == null) {
standard.put("estimatedNumPeople", new Double("1"));
standard.put("estimatedNumPeople", Double.valueOf("1"));
}
if (standard.get("estimatedDuration") != null) {
plannedHours += standard.getDouble("estimatedDuration") / standard.getDouble("estimatedNumPeople");
@@ -73,7 +73,7 @@ public class Various {
Debug.logError("Could not updte task: " + e.getMessage(), module);
}
if (plannedHours == 0.00) {
plannedHours = new Double("24.00"); // default length of task is 3 days.
plannedHours = Double.valueOf("24.00"); // default length of task is 3 days.
}
// only add days which are not saturday(7) or sunday(1)