Skip to content

Commit

Permalink
Move non-reentrant DateFormat into function, thx Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Jul 23, 2014
1 parent 452f702 commit 79e4d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de/duenndns/ssl/MemorizingTrustManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ private static String certHash(final X509Certificate cert, String digest) {
}
}

SimpleDateFormat validityDateFormater = new SimpleDateFormat("yyyy-MM-dd");
private void certDetails(StringBuffer si, X509Certificate c) {
SimpleDateFormat validityDateFormater = new SimpleDateFormat("yyyy-MM-dd");
si.append("\n");
si.append(c.getSubjectDN().toString());
si.append("\n");
Expand Down

0 comments on commit 79e4d7c

Please sign in to comment.