Skip to content

Commit

Permalink
Make VERSION public again.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveneiman committed Apr 24, 2017
1 parent 447db7e commit 875e488
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/edu/harvard/hul/ois/fits/FitsOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,19 @@ 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);

/**
* Set from Fits.java initialization.
*/
static void setFitsVersion(String fitsVersion) {
if (fitsVersion != null) {
FitsOutput.fitsVersion = new String(fitsVersion);
FitsOutput.VERSION = new String(fitsVersion);
}
}

Expand Down Expand Up @@ -465,6 +469,6 @@ else if (t.getRunStatus() == RunStatus.SHOULDNOTRUN){
}

public String getFitsVersion() {
return FitsOutput.fitsVersion;
return FitsOutput.VERSION;
}
}

0 comments on commit 875e488

Please sign in to comment.