Skip to content

Commit 5c47475

Browse files
committed
Remove unused exceptions from Timestamps.
1 parent cd7ab97 commit 5c47475

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/fr/rabian/ovhApi/core/utils/Timestamps.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private long getCorrectedTime() {
6161
*
6262
* @throws Exception From fetching
6363
*/
64-
private void correctTime() throws Exception {
64+
private void correctTime() {
6565
long time = getOVHTime();
6666
lastFetch = getSystemTime();
6767
delta = (int) (getSystemTime() - time);
@@ -73,7 +73,7 @@ private void correctTime() throws Exception {
7373
* @return Timestamp
7474
* @throws Exception From fetching
7575
*/
76-
private long getOVHTime() throws Exception {
76+
private long getOVHTime() {
7777
StringBuffer out = new StringBuffer();
7878
HttpRequests.sendGet(this.url, out);
7979
return Long.parseLong(out.toString());
@@ -85,7 +85,7 @@ private long getOVHTime() throws Exception {
8585
* @return Timestamp
8686
* @throws Exception From fetching
8787
*/
88-
public long getTime() throws Exception {
88+
public long getTime() {
8989
return getTime(AUTO);
9090
}
9191

@@ -96,7 +96,7 @@ public long getTime() throws Exception {
9696
* @return Timestamp
9797
* @throws Exception From fetching
9898
*/
99-
public long getTime(int source) throws Exception {
99+
public long getTime(int source) {
100100
long time;
101101

102102
if (source == AUTO || source == SYSTEM) {

0 commit comments

Comments
 (0)