mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 15:49:57 +00:00
20 lines
485 B
Java
20 lines
485 B
Java
package org.kohsuke.github;
|
|
|
|
/**
|
|
* {@link GHContent} with license information.
|
|
*
|
|
* @see <a href="https://developer.github.com/v3/licenses/#get-a-repositorys-license">documentation</a>
|
|
* @see GHRepository#getLicense()
|
|
*/
|
|
class GHContentWithLicense extends GHContent {
|
|
GHLicense license;
|
|
|
|
@Override
|
|
GHContentWithLicense wrap(GHRepository owner) {
|
|
super.wrap(owner);
|
|
if (license != null)
|
|
license.wrap(owner.root);
|
|
return this;
|
|
}
|
|
}
|