Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Java Package Structure #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gradle
build
.ackrc
.idea
10 changes: 5 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionBase = GRADLE_USER_HOME
distributionPath = wrapper/dists
distributionUrl = https://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase = GRADLE_USER_HOME
zipStorePath = wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package io.airbrake.javabrake;

import java.util.ArrayList;
import java.lang.StackTraceElement;
import java.lang.Class;
import java.net.URL;

class ClassUtil {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package io.airbrake.javabrake;

import java.util.List;
import java.util.ArrayList;

public class NoticeError {
public final String type;
public final String message;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.airbrake.javabrake;

import java.util.Map;

public class NoticeStackFrame {
static ClassUtil util = new ClassUtil();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package io.airbrake.javabrake;

import java.util.concurrent.Future;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
import javax.annotation.Nullable;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

/** Airbrake notifier. */
public class Notifier {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package io.airbrake.javabrake;

import java.util.concurrent.Future;
import java.util.concurrent.CompletableFuture;
import java.io.IOException;

import java.util.concurrent.CompletableFuture;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package io.airbrake.javabrake;

import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.TimeUnit;
import java.io.Reader;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonParseException;

import java.io.IOException;
import java.io.Reader;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package io.airbrake.javabrake;

import java.util.concurrent.Future;
import java.util.concurrent.CompletableFuture;
import java.io.IOException;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

public class OkSyncSender extends OkSender implements SyncSender {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package io.airbrake.javabrake;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import java.io.IOException;

import java.util.TimerTask;
import java.util.HashMap;

import java.util.TimerTask;
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.HttpUrl;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonSyntaxException;

class PollTask extends TimerTask {
final private int projectId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import java.util.ArrayList;

import com.google.gson.Gson;

class SettingsData {
// API version to poll.
static final String API_VER = "2020-06-18";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.airbrake.javabrake;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.HashMap;

class Truncator {
int maxStringLength = 1024;
Expand Down