From 07ac4b83de6fd9c34a3d2fb8573c93d8191cea74 Mon Sep 17 00:00:00 2001 From: Jon Iles Date: Thu, 22 Aug 2024 10:13:45 +0100 Subject: [PATCH] Formatting --- .../java/net/sf/mpxj/ManuallyScheduledTaskCalendar.java | 7 +++---- src/main/java/net/sf/mpxj/UserDefinedField.java | 2 +- src/main/java/net/sf/mpxj/mpp/CustomFieldReader12.java | 2 +- src/main/java/net/sf/mpxj/mpp/CustomFieldReader14.java | 2 +- .../java/net/sf/mpxj/primavera/PrimaveraPMFileReader.java | 1 - .../mpxj/junit/TimephasedWorkSegmentManualOffsetTest.java | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/java/net/sf/mpxj/ManuallyScheduledTaskCalendar.java b/src/main/java/net/sf/mpxj/ManuallyScheduledTaskCalendar.java index ca42840b84..b86beef706 100644 --- a/src/main/java/net/sf/mpxj/ManuallyScheduledTaskCalendar.java +++ b/src/main/java/net/sf/mpxj/ManuallyScheduledTaskCalendar.java @@ -103,7 +103,7 @@ public ManuallyScheduledTaskCalendar(ProjectCalendar calendar, ResourceAssignmen } } } - + if (date.equals(m_assignmentEndDate)) { LocalTime assignmentEndTime = m_assignment.getFinish().toLocalTime(); @@ -140,7 +140,7 @@ public ManuallyScheduledTaskCalendar(ProjectCalendar calendar, ResourceAssignmen private final ResourceAssignment m_assignment; private final LocalDate m_assignmentStartDate; private final LocalDate m_assignmentEndDate; - + private static final List WEEK_DAYS = Arrays.asList( DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, @@ -148,6 +148,5 @@ public ManuallyScheduledTaskCalendar(ProjectCalendar calendar, ResourceAssignmen DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY, - DayOfWeek.MONDAY - ); + DayOfWeek.MONDAY); } diff --git a/src/main/java/net/sf/mpxj/UserDefinedField.java b/src/main/java/net/sf/mpxj/UserDefinedField.java index cbd8d74099..827c7afdb0 100644 --- a/src/main/java/net/sf/mpxj/UserDefinedField.java +++ b/src/main/java/net/sf/mpxj/UserDefinedField.java @@ -91,7 +91,7 @@ public class UserDefinedField implements FieldType private UserDefinedField(Builder builder) { m_uniqueID = builder.m_sequenceProvider.getUniqueIdObjectSequence(UserDefinedField.class).syncOrGetNext(builder.m_uniqueID); - m_internalName = builder.m_internalName == null || builder.m_internalName.isEmpty() ? builder.m_internalName = "user_field_" + m_uniqueID : builder.m_internalName; + m_internalName = builder.m_internalName == null || builder.m_internalName.isEmpty() ? builder.m_internalName = "user_field_" + m_uniqueID : builder.m_internalName; m_externalName = builder.m_externalName; m_fieldTypeClass = builder.m_fieldTypeClass; m_summaryTaskOnly = builder.m_summaryTaskOnly; diff --git a/src/main/java/net/sf/mpxj/mpp/CustomFieldReader12.java b/src/main/java/net/sf/mpxj/mpp/CustomFieldReader12.java index 57de34c10b..e84cc8e125 100644 --- a/src/main/java/net/sf/mpxj/mpp/CustomFieldReader12.java +++ b/src/main/java/net/sf/mpxj/mpp/CustomFieldReader12.java @@ -149,7 +149,7 @@ public void process() offset += blockSize; } - aliasMap.forEach((k,v) -> m_fields.getOrCreate(FieldTypeHelper.getInstance(m_file, k.intValue())).setAlias(v)); + aliasMap.forEach((k, v) -> m_fields.getOrCreate(FieldTypeHelper.getInstance(m_file, k.intValue())).setAlias(v)); } private final ProjectFile m_file; diff --git a/src/main/java/net/sf/mpxj/mpp/CustomFieldReader14.java b/src/main/java/net/sf/mpxj/mpp/CustomFieldReader14.java index 42d7c5c778..5bd6bf7dc7 100644 --- a/src/main/java/net/sf/mpxj/mpp/CustomFieldReader14.java +++ b/src/main/java/net/sf/mpxj/mpp/CustomFieldReader14.java @@ -146,7 +146,7 @@ public void process() offset += 88; } - aliasMap.forEach((k,v) -> m_fields.getOrCreate(FieldTypeHelper.getInstance(m_file, k.intValue())).setAlias(v)); + aliasMap.forEach((k, v) -> m_fields.getOrCreate(FieldTypeHelper.getInstance(m_file, k.intValue())).setAlias(v)); } private final ProjectFile m_file; diff --git a/src/main/java/net/sf/mpxj/primavera/PrimaveraPMFileReader.java b/src/main/java/net/sf/mpxj/primavera/PrimaveraPMFileReader.java index a2d94c4b45..1cd745006c 100644 --- a/src/main/java/net/sf/mpxj/primavera/PrimaveraPMFileReader.java +++ b/src/main/java/net/sf/mpxj/primavera/PrimaveraPMFileReader.java @@ -507,7 +507,6 @@ private ProjectFile read(APIBusinessObjects apibo, Object projectObject) activityExpenseType = project.getActivityExpense(); } - Map wbsNotes = getWbsNotes(projectNotes); m_projectFile.getProjectProperties().setNotesObject(wbsNotes.get(Integer.valueOf(0))); diff --git a/src/test/java/net/sf/mpxj/junit/TimephasedWorkSegmentManualOffsetTest.java b/src/test/java/net/sf/mpxj/junit/TimephasedWorkSegmentManualOffsetTest.java index 88d04707f3..8a6e878a4a 100644 --- a/src/test/java/net/sf/mpxj/junit/TimephasedWorkSegmentManualOffsetTest.java +++ b/src/test/java/net/sf/mpxj/junit/TimephasedWorkSegmentManualOffsetTest.java @@ -90,7 +90,7 @@ private void testSegments(ProjectFile file) * Common method used to test timephased assignment segments against expected data. * * @param assignment parent resource assignment - * @param assignmentIndex index number of current assignment + * @param assignmentIndex index number of current assignment * @param startDate start date for segments * @param segmentCount number of segments to create * @param units units of duration for each segment