Class ReadOnlyObjects.GHMetaPublic

java.lang.Object
org.kohsuke.github.example.dataobject.ReadOnlyObjects.GHMetaPublic
All Implemented Interfaces:
ReadOnlyObjects.GHMetaExample
Enclosing class:
ReadOnlyObjects

public static class ReadOnlyObjects.GHMetaPublic extends Object implements ReadOnlyObjects.GHMetaExample
This version uses public getters and setters and leaves it up to Jackson how it wants to fill them.

Pro:

  • Easy to create
  • Not much code
  • Minimal annotations
Con:
  • Exposes public setters for fields that should not be changed, flagged by spotbugs
  • Lists modifiable when they should not be changed
  • Jackson generally doesn't call the setters, it just sets the fields directly
Author:
Paulo Miguel Almeida
See Also: