Skip to content

Commit d4fc05e

Browse files
committed
clean up
1 parent 475bbf7 commit d4fc05e

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/main/java/org/maxgamer/quickshop/localization/text/SimpleTextManager.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void reset() {
100100
* @param file The Crowdin file path
101101
* @return The bundled file configuration object
102102
*/
103-
private JsonConfiguration loadBundled(String file) throws IOException {
103+
private JsonConfiguration loadBundled(String file) {
104104
JsonConfiguration bundledLang = new JsonConfiguration();
105105
File fileObject = new File(file);
106106
try {
@@ -140,10 +140,8 @@ public void load() {
140140
// Deploy distribution to mapper
141141
mapper.deploy(crowdinFile, minecraftCode, configuration, loadBundled(crowdinFile));
142142
Util.debugLog("Locale " + crowdinFile.replace("%locale%", crowdinCode) + " has been successfully loaded");
143-
} catch (CrowdinOTA.OTAException e) {
144-
// Key founds in available locales but not in custom mapping on crowdin platform
145-
plugin.getLogger().warning("Couldn't update the translation for locale " + crowdinCode + " because it not configured, please report to QuickShop");
146-
} catch (IOException e) {
143+
} // Key founds in available locales but not in custom mapping on crowdin platform
144+
catch (IOException e) {
147145
// Network error
148146
plugin.getLogger().log(Level.WARNING, "Couldn't update the translation for locale " + crowdinCode + " please check your network connection.", e);
149147
} catch (Exception e) {

src/main/java/org/maxgamer/quickshop/nonquickshopstuff/com/sk89q/worldedit/util/net/HttpRequest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,9 @@ public BufferedResponse returnContent() throws IOException {
301301
*
302302
* @param file the file
303303
* @return this object
304-
* @throws java.io.IOException on I/O error
305-
* @throws InterruptedException on interruption
304+
* @throws java.io.IOException on I/O error
306305
*/
307-
public HttpRequest saveContent(File file) throws IOException, InterruptedException {
306+
public HttpRequest saveContent(File file) throws IOException {
308307

309308
try (Closer closer = Closer.create()) {
310309
FileOutputStream fos = closer.register(new FileOutputStream(file));
@@ -470,9 +469,8 @@ public String asString(String encoding) throws IOException {
470469
* @param file the file
471470
* @return this object
472471
* @throws java.io.IOException on I/O error
473-
* @throws InterruptedException on interruption
474472
*/
475-
public BufferedResponse saveContent(File file) throws IOException, InterruptedException {
473+
public BufferedResponse saveContent(File file) throws IOException {
476474

477475
try (Closer closer = Closer.create()) {
478476
file.getParentFile().mkdirs();

0 commit comments

Comments
 (0)