From c3f314c491e3c2e29def4f593cbd34fa0e619559 Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Mon, 13 Jul 2015 18:54:45 +0200 Subject: [PATCH] Compilation issues --- pom.xml | 6 +-- .../java/fr/xephi/authme/DataManager.java | 3 +- .../authme/datasource/DatabaseCalls.java | 40 +++++++++---------- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index c51b50cc3..eb10552dd 100644 --- a/pom.xml +++ b/pom.xml @@ -17,8 +17,8 @@ UTF-8 - 1.7 - 1.7 + 1.6 + 1.6 1.8.7-R0.1-SNAPSHOT @@ -183,7 +183,7 @@ mysql mysql-connector-java - 5.1.35 + 5.1.36 diff --git a/src/main/java/fr/xephi/authme/DataManager.java b/src/main/java/fr/xephi/authme/DataManager.java index 3804999ad..2bcfa17aa 100644 --- a/src/main/java/fr/xephi/authme/DataManager.java +++ b/src/main/java/fr/xephi/authme/DataManager.java @@ -3,7 +3,6 @@ package fr.xephi.authme; import java.io.File; import java.util.List; import java.util.concurrent.Callable; -import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; @@ -45,7 +44,7 @@ public class DataManager { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (null); } } diff --git a/src/main/java/fr/xephi/authme/datasource/DatabaseCalls.java b/src/main/java/fr/xephi/authme/datasource/DatabaseCalls.java index d146bab88..ea82e2569 100644 --- a/src/main/java/fr/xephi/authme/datasource/DatabaseCalls.java +++ b/src/main/java/fr/xephi/authme/datasource/DatabaseCalls.java @@ -3,7 +3,6 @@ package fr.xephi.authme.datasource; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; -import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; @@ -29,7 +28,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -45,7 +44,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return null; } } @@ -61,7 +60,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -77,7 +76,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -93,7 +92,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -109,7 +108,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (0); } } @@ -125,7 +124,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (new ArrayList()); } } @@ -141,7 +140,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -157,7 +156,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -173,7 +172,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (0); } } @@ -189,7 +188,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (new ArrayList()); } } @@ -205,7 +204,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (new ArrayList()); } } @@ -221,7 +220,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (new ArrayList()); } } @@ -237,7 +236,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -253,7 +252,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -295,7 +294,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (false); } } @@ -344,13 +343,14 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (0); } } @Override - public synchronized void updateName(final String oldone, final String newone) { + public synchronized void updateName(final String oldone, + final String newone) { new Thread(new Runnable() { @Override @@ -371,7 +371,7 @@ public class DatabaseCalls implements DataSource { }); try { return result.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { return (new ArrayList()); } }