Skip to content

Commit

Permalink
removed deprecated new Integer()
Browse files Browse the repository at this point in the history
  • Loading branch information
thsa committed Sep 6, 2024
1 parent 2c1ba3b commit 7987513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public List<SynthonSpaceSimilarityExplorer.FinalizedSimilarityHit> findSimilarSt
allowed_rxns);
//explorer.screen_default(3, 3, );

Function<Integer,Integer> f_initial_dist = (Integer bits) -> new Integer( (int) Math.ceil( ((double)bits.intValue()) * (1.0-min_tanimoto_sim_initial) ) + 2 );
Function<Integer,Integer> f_initial_dist = (Integer bits) -> Integer.valueOf( (int) Math.ceil( ((double)bits.intValue()) * (1.0-min_tanimoto_sim_initial) ) + 2 );

Random r = new Random();
List<SynthonSpaceSimilarityExplorer.SimilarityHit> hits = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,7 @@ public static Map<String,List<Map<Integer, Pair<FragType,BitSet>>>> computeConne
Optional<Integer> oi = rxci.stream().filter( ci -> ci >= sci ).sorted().findFirst();
is_ok &= oi.isPresent();
if(!is_ok){break;}
rxci.remove(new Integer(sci));
rxci.remove(Integer.valueOf(sci));
}
if(is_ok) {
rxns.addAll(space.rxns_by_connector_counts.get(rxn_cc));
Expand Down

0 comments on commit 7987513

Please sign in to comment.