Skip to content

Conversation

@caitlinrussell
Copy link

These helpers do a few things:

  • Modify the generated artifacts to more accurately describe the service
  • Provide accessors for items not described by the service
  • Add helper methods (ported from those provided in the .NET library)
  • Clean up and improve existing Planner tests

* The class for the Base Planner Assignments.
*/
public class BasePlannerAssignments implements IJsonBackedObject {
public class BasePlannerAssignments extends HashMap<String, PlannerAssignment> implements IJsonBackedObject {
Copy link
Contributor

@davidmoten davidmoten Jan 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only reason I can see for extending HashMap is to support the put method. Rather than expose (and be forced to support) the huge HashMap api why not use composition instead of inheritance here (and only expose the put method)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct on this.

However, since this is helper code written in C# and ported over to Java, and because we are trying to minimize our costs on custom code like this, I'll leave it as-is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okey doke

Copy link
Collaborator

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caitlinrussell caitlinrussell merged commit bc530be into master Feb 20, 2018
@caitlinrussell caitlinrussell deleted the planner-helpers branch February 20, 2018 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants