Skip to content

Commit

Permalink
tweak java versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
bodonoghue committed Feb 24, 2015
1 parent c1fc154 commit fe6e035
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion java/src/scs/DirectSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ public class DirectSolver implements IConeSolver {
private static native void csolve(AMatrix A, double[] b, double[] c, Cone k, Settings p, Solution s, Info info);
private static native String cversion();

private final static String VERSION = cversion();

public void solve(Data d, Cone k, Settings p, Solution sol, Info info) {
csolve(d.getA(), d.getB(), d.getC(), k, p, sol, info);
}

public String version() {
return cversion();
return VERSION;
}
}
4 changes: 3 additions & 1 deletion java/src/scs/IndirectSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ public class IndirectSolver implements IConeSolver {
private static native void csolve(AMatrix A, double[] b, double[] c, Cone k, Settings p, Solution s, Info info);
private static native String cversion();

private final static String VERSION = cversion();

public void solve(Data d, Cone k, Settings p, Solution sol, Info info) {
csolve(d.getA(), d.getB(), d.getC(), k, p, sol, info);
}

public String version() {
return cversion();
return VERSION;
}
}

0 comments on commit fe6e035

Please sign in to comment.