Class ReadOnlyObjects.GHMetaPackage

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

public static class ReadOnlyObjects.GHMetaPackage extends Object implements ReadOnlyObjects.GHMetaExample
This version uses public getters and shows that package or private setters both can be used by jackson. You can check this by running in debug and setting break points in the setters.

Pro:

  • Easy to create
  • Not much code
  • Some annotations
Con:
  • Exposes some package setters for fields that should not be changed, better than public
  • Lists modifiable when they should not be changed
Author:
Liam Newman
See Also: