Skip to content

Commit

Permalink
Merge b6d4fb3 into 044a6ad
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Apr 11, 2019
2 parents 044a6ad + b6d4fb3 commit ceda797
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions sdk/src/main/java/com/bugsnag/android/CachedThread.java
Expand Up @@ -8,12 +8,12 @@
* A representation of a thread recorded in a {@link Report}
*/
class CachedThread implements JsonStream.Streamable {
private long id;
private String name;
private String type;
private boolean isErrorReportingThread;
private StackTraceElement[] frames;
private Configuration config;
private final long id;
private final String name;
private final String type;
private final boolean isErrorReportingThread;
private final StackTraceElement[] frames;
private final Configuration config;

CachedThread(Configuration config, long id, String name, String type,
boolean isErrorReportingThread, StackTraceElement[] frames) {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/bugsnag/android/Client.java
Expand Up @@ -75,7 +75,7 @@ public class Client extends Observable implements Observer {

final EventReceiver eventReceiver;
final SessionTracker sessionTracker;
SharedPreferences sharedPrefs;
final SharedPreferences sharedPrefs;

private final OrientationEventListener orientationListener;

Expand Down
10 changes: 5 additions & 5 deletions sdk/src/main/java/com/bugsnag/android/DeviceData.java
Expand Up @@ -55,19 +55,19 @@ class DeviceData {
private final boolean rooted;

@Nullable
Float screenDensity;
final Float screenDensity;

@Nullable
Integer dpi;
final Integer dpi;

@Nullable
String screenResolution;
final String screenResolution;

@NonNull
String locale;
final String locale;

@NonNull
String[] cpuAbi;
final String[] cpuAbi;

DeviceData(Client client) {
this.client = client;
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/bugsnag/android/Session.java
Expand Up @@ -12,7 +12,7 @@ class Session implements JsonStream.Streamable {
private final String id;
private final Date startedAt;
private final User user;
private AtomicBoolean autoCaptured;
private final AtomicBoolean autoCaptured;

static Session copySession(Session session) {
Session copy = new Session(session.id, session.startedAt,
Expand Down
8 changes: 4 additions & 4 deletions sdk/src/main/java/com/bugsnag/android/SessionTracker.java
Expand Up @@ -38,12 +38,12 @@ class SessionTracker extends Observable implements Application.ActivityLifecycle
final SessionStore sessionStore;

// This most recent time an Activity was stopped.
private AtomicLong lastExitedForegroundMs = new AtomicLong(0);
private final AtomicLong lastExitedForegroundMs = new AtomicLong(0);

// The first Activity in this 'session' was started at this time.
private AtomicLong lastEnteredForegroundMs = new AtomicLong(0);
private AtomicReference<Session> currentSession = new AtomicReference<>();
private Semaphore flushingRequest = new Semaphore(1);
private final AtomicLong lastEnteredForegroundMs = new AtomicLong(0);
private final AtomicReference<Session> currentSession = new AtomicReference<>();
private final Semaphore flushingRequest = new Semaphore(1);

SessionTracker(Configuration configuration, Client client, SessionStore sessionStore) {
this(configuration, client, DEFAULT_TIMEOUT_MS, sessionStore);
Expand Down

0 comments on commit ceda797

Please sign in to comment.