Skip to content

Commit

Permalink
Optimized imports
Browse files Browse the repository at this point in the history
Fixed compilation error
  • Loading branch information
Alberto Geniola committed Jul 4, 2021
1 parent bca8f41 commit d6e8529
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;

import java.io.IOException;
import java.io.Serializable;
import java.util.concurrent.TimeUnit;

import javax.net.SocketFactory;

import lombok.Getter;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.albertogeniola.merosslib.model.http.exceptions.HttpApiInvalidCredentialsException;
import com.albertogeniola.merosslib.model.http.exceptions.HttpApiTokenException;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient;
Expand All @@ -28,18 +27,15 @@
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.TimeUnit;

import jdk.nashorn.internal.parser.TokenType;
import lombok.NonNull;
import lombok.SneakyThrows;

import java.util.logging.Logger;

import javax.net.SocketFactory;

import lombok.NonNull;
import lombok.SneakyThrows;


public class MerossHttpClient implements Serializable {
// Static attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,32 @@

import java.util.Date;

import jdk.internal.jline.internal.Nullable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NonNull;

@Getter
public class ApiCredentials {

@Nullable
private String apiServer;

@Nullable
private String token;

@NonNull
private final String userId;

@Nullable
private String userEmail;

@NonNull
private final String key;

@Nullable
private Date issuedOn;

public ApiCredentials(String userId, String key) {
this.userId = userId;
this.key = key;
}

public ApiCredentials(@Nullable String apiServer, @Nullable String token, @NonNull String userId, @Nullable String userEmail, @NonNull String key, @Nullable Date issuedOn) {
public ApiCredentials(String apiServer, String token, @NonNull String userId, String userEmail, @NonNull String key, Date issuedOn) {
this.apiServer = apiServer;
this.token = token;
this.userId = userId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import com.google.gson.annotations.SerializedName;

import java.util.Map;

import lombok.Getter;

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.io.UnsupportedEncodingException;

import lombok.Getter;
import lombok.Setter;

@Getter
public class GetConfigWifiListEntry {
Expand Down

0 comments on commit d6e8529

Please sign in to comment.