mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Merge pull request #2163 from rsandell/public-fp-xstream
Make Fingerprint's XSTREAM field public
This commit is contained in:
commit
320ff5ff44
1 file changed
+13
-1
@@ -1469,7 +1469,19 @@ public class Fingerprint implements ModelObject, Saveable {
|
||||
return res[0];
|
||||
}
|
||||
|
||||
private static final XStream XSTREAM = new XStream2();
|
||||
private static final XStream2 XSTREAM = new XStream2();
|
||||
|
||||
/**
|
||||
* Provides the XStream instance this class is using for serialization.
|
||||
*
|
||||
* @return the XStream instance
|
||||
* @since FIXME
|
||||
*/
|
||||
@Nonnull
|
||||
public static XStream2 getXStream() {
|
||||
return XSTREAM;
|
||||
}
|
||||
|
||||
static {
|
||||
XSTREAM.alias("fingerprint",Fingerprint.class);
|
||||
XSTREAM.alias("range",Range.class);
|
||||
|
||||
Reference in new issue
Block a user