Skip to content

Commit

Permalink
no locate changes for the InChI input adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
markussitzmann committed Jul 15, 2019
1 parent 14ed92a commit e95d7d4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
import net.sf.jniinchi.JniInchiInput;

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.List;
import java.util.Locale;
import java.util.StringTokenizer;

public class JniInChIInputAdapter extends JniInchiInput {
Expand Down Expand Up @@ -102,7 +100,7 @@ private static String checkOptions(final String ops) throws JniInchiException {
if (isSubSecondTimeout(op)) {
// because the JNI-InChI library is expecting an platform number, format it as such
Double time = Double.parseDouble(op.substring(1));
DecimalFormat format = new DecimalFormat("#.##", DecimalFormatSymbols.getInstance(Locale.ROOT));
DecimalFormat format = new DecimalFormat("#.##");
sbOptions.append(FLAG_CHAR).append('W').append(format.format(time));
} else {
sbOptions.append(FLAG_CHAR).append(op);
Expand Down

0 comments on commit e95d7d4

Please sign in to comment.