Skip to content

Commit

Permalink
Merge pull request #133 from daveneiman/keep_deprecated_FitsOutput_VE…
Browse files Browse the repository at this point in the history
…RSION

Make FitsOutput.VERSION public again.
  • Loading branch information
daveneiman authored May 1, 2017
2 parents 447db7e + 875e488 commit 1a8fe27
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 1a8fe27

Please sign in to comment.