mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-03 15:50:52 +00:00
50 lines
2.3 KiB
HTML
50 lines
2.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHLabelChanges.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> > <a href="index.source.html" class="el_package">org.kohsuke.github</a> > <span class="el_source">GHLabelChanges.java</span></div><h1>GHLabelChanges.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
|
|
|
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
|
|
|
/**
|
|
* Wrapper to define changed fields on label action="edited"
|
|
*
|
|
* @see GHEventPayload.Label
|
|
*/
|
|
@SuppressFBWarnings("UWF_UNWRITTEN_FIELD")
|
|
<span class="fc" id="L11">public class GHLabelChanges {</span>
|
|
|
|
private GHFrom name;
|
|
private GHFrom color;
|
|
|
|
/**
|
|
* Old label name.
|
|
*
|
|
* @return old label name (or null if not changed)
|
|
*/
|
|
public GHFrom getName() {
|
|
<span class="fc" id="L22"> return name;</span>
|
|
}
|
|
|
|
/**
|
|
* Old label color.
|
|
*
|
|
* @return old label color (or null if not changed)
|
|
*/
|
|
public GHFrom getColor() {
|
|
<span class="fc" id="L31"> return color;</span>
|
|
}
|
|
|
|
/**
|
|
* Wrapper for changed values.
|
|
*/
|
|
<span class="fc" id="L37"> public static class GHFrom {</span>
|
|
private String from;
|
|
|
|
/**
|
|
* Previous value that was changed.
|
|
*
|
|
* @return previous value
|
|
*/
|
|
public String getFrom() {
|
|
<span class="fc" id="L46"> return from;</span>
|
|
}
|
|
}
|
|
}
|
|
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |