Commit f15b752b19340a42abd417256b26a9a33d2df811
1 parent
d0d4491817
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 1 additions and 4 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/utils/DateUtils.java
View file @
f15b752
... | ... | @@ -133,7 +133,6 @@ |
133 | 133 | { |
134 | 134 | try |
135 | 135 | { |
136 | - lock.lock(); | |
137 | 136 | return getDateFormat(format).format(date); |
138 | 137 | } |
139 | 138 | catch (Exception e) |
... | ... | @@ -141,9 +140,7 @@ |
141 | 140 | logger.error("get date format error."); |
142 | 141 | return null; |
143 | 142 | } |
144 | - finally { | |
145 | - lock.unlock(); | |
146 | - } | |
143 | + | |
147 | 144 | } |
148 | 145 | |
149 | 146 |