File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/main/java/org/maxgamer/quickshop/localization/text/distributions/crowdin Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 2222import com .google .gson .JsonElement ;
2323import com .google .gson .JsonParser ;
2424import com .google .gson .JsonPrimitive ;
25- import lombok .*;
25+ import lombok .AllArgsConstructor ;
26+ import lombok .Builder ;
27+ import lombok .Data ;
28+ import lombok .EqualsAndHashCode ;
2629import org .apache .commons .codec .digest .DigestUtils ;
2730import org .bukkit .configuration .file .YamlConfiguration ;
2831import org .jetbrains .annotations .NotNull ;
@@ -253,11 +256,15 @@ public OTACacheControl() {
253256 this .metadata = YamlConfiguration .loadConfiguration (this .metadataFile );
254257 }
255258
256- @ SneakyThrows
257259 private void save () {
258260 LOCK .lock ();
259- this .metadata .save (this .metadataFile );
260- LOCK .unlock ();
261+ try {
262+ this .metadata .save (this .metadataFile );
263+ } catch (Exception exception ) {
264+ exception .printStackTrace ();
265+ } finally {
266+ LOCK .unlock ();
267+ }
261268 }
262269
263270 private String hash (String str ) {
You can’t perform that action at this time.
0 commit comments