Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix(logsender): remove references to AndroidX annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaky committed Aug 11, 2023
1 parent 8fa9912 commit e6944b8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;
import androidx.annotation.Nullable;
import com.itsaky.androidide.logsender.utils.Logger;

/**
Expand All @@ -33,7 +32,6 @@ public class LogSenderService extends Service {

private final LogSender logSender = new LogSender();

@Nullable
@Override
public IBinder onBind(Intent intent) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,17 @@

package com.itsaky.androidide.logsender.socket;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
* Base class for socket commands.
*
* @author Akash Yadav
*/
public abstract class AbstractSocketCommand implements ISocketCommand {

@Nullable
protected String[] getParams() {
return null;
}

@NonNull
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("/");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package com.itsaky.androidide.logsender.socket;

import androidx.annotation.Nullable;
import java.io.File;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package com.itsaky.androidide.logsender.socket;

import androidx.annotation.Nullable;

/**
* Command containing information about the log sender.
*
Expand All @@ -40,7 +38,6 @@ public String getName() {
return NAME;
}

@Nullable
@Override
protected String[] getParams() {
return new String[]{this.senderId, this.packageName};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@

package com.itsaky.androidide.logsender.socket;

import androidx.annotation.Nullable;
import java.util.UUID;

/**
* @author Akash Yadav
*/
public final class SocketCommandParser {

@Nullable
public static ISocketCommand parse(String line) {
// remove leading '/'
line = line.substring(1);
Expand All @@ -41,7 +39,6 @@ public static ISocketCommand parse(String line) {
return null;
}

@Nullable
private static ISocketCommand create(String name) {
if (name.equals(SignalCommand.STOP.getName())) {
return SignalCommand.STOP;
Expand All @@ -50,7 +47,6 @@ private static ISocketCommand create(String name) {
return null;
}

@Nullable
private static ISocketCommand createParameterized(String[] segments) {
final String command = segments[0];
if (SenderInfoCommand.NAME.equals(command)) {
Expand Down

0 comments on commit e6944b8

Please sign in to comment.