~ubuntu-branches/debian/stretch/subversion/stretch

« back to all changes in this revision

Viewing changes to subversion/bindings/javahl/src/org/tigris/subversion/javahl/LogDate.java

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2013-10-18 23:23:06 UTC
  • mfrom: (17.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20131018232306-etbd7h4i0stghrd5
Tags: 1.7.13-2
Remove unnecessary libapache2-svn.prem.  (Closes: #726717)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        {
54
54
            throw new ParseException("String is not a valid Subversion date", 0);
55
55
        }
56
 
        Date date = formatter.parse(datestr.substring(0, 23) + " UTC");
 
56
        Date date;
 
57
        synchronized(formatter)
 
58
        {
 
59
            date = formatter.parse(datestr.substring(0, 23) + " UTC");
 
60
        }
57
61
        this.cachedString = datestr;
58
62
        cachedDate = Calendar.getInstance(UTC);
59
63
        cachedDate.setTime(date);