From 875e4887fcc3f825e0c1dbc74079a963a4b31a6a Mon Sep 17 00:00:00 2001 From: David Neiman Date: Mon, 24 Apr 2017 12:59:06 -0400 Subject: [PATCH] Make VERSION public again. --- src/edu/harvard/hul/ois/fits/FitsOutput.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/edu/harvard/hul/ois/fits/FitsOutput.java b/src/edu/harvard/hul/ois/fits/FitsOutput.java index 6afc431d..3041d98f 100644 --- a/src/edu/harvard/hul/ois/fits/FitsOutput.java +++ b/src/edu/harvard/hul/ois/fits/FitsOutput.java @@ -65,7 +65,11 @@ public class FitsOutput { private Namespace ns = Namespace.getNamespace(Fits.XML_NAMESPACE); private XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newInstance(); - private static String fitsVersion = null; + /** + * For backwards compatibility with older FITS clients. + * @deprecated + */ + public static String VERSION = null; private static final Logger logger = Logger.getLogger(FitsOutput.class); /** @@ -73,7 +77,7 @@ public class FitsOutput { */ static void setFitsVersion(String fitsVersion) { if (fitsVersion != null) { - FitsOutput.fitsVersion = new String(fitsVersion); + FitsOutput.VERSION = new String(fitsVersion); } } @@ -465,6 +469,6 @@ else if (t.getRunStatus() == RunStatus.SHOULDNOTRUN){ } public String getFitsVersion() { - return FitsOutput.fitsVersion; + return FitsOutput.VERSION; } }