Skip to content

Commit

Permalink
Make response fields private + avoid false positive unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinqualaroo committed Sep 6, 2018
1 parent 72419c7 commit 6e36918
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.gson.annotations.SerializedName;

@SuppressWarnings("unused")
public class CloudAuthHolder {
@SerializedName("redirect_url") private String redirectUrl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.filestack.internal.responses;

@SuppressWarnings("unused")
public class CloudStoreResponse {
private String url;
private String handle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.filestack.internal.responses;

/** Response from multipart complete endpoint. */
@SuppressWarnings("unused")
public class CompleteResponse {
private String url;
private String handle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
*
* @see <a href="https://www.filestack.com/docs/tagging"></a>
*/
@SuppressWarnings("unused")
public class ImageTagResponse {
Tags tags;
private Tags tags;

class Tags {
Map<String, Integer> auto;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package com.filestack.internal.responses;

/** Response object from transform store endpoint. */
@SuppressWarnings("unused")
public class StoreResponse {
String url;
String filename;
String type;
private String url;
private String filename;
private String type;

String container;
String key;
private String container;
private String key;

int width;
int height;
int size;
private int width;
private int height;
private int size;

public String getUrl() {
return url;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Map;

/** Response object from multipart upload endpoint. */
@SuppressWarnings("unused")
public class UploadResponse {
private String url;
@SerializedName("location_url")
Expand Down

0 comments on commit 6e36918

Please sign in to comment.