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

Commit e6944b8

Browse files
committed
fix(logsender): remove references to AndroidX annotations
1 parent 8fa9912 commit e6944b8

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

logsender/src/main/java/com/itsaky/androidide/logsender/LogSenderService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import android.content.Intent;
2222
import android.os.IBinder;
2323
import android.widget.Toast;
24-
import androidx.annotation.Nullable;
2524
import com.itsaky.androidide.logsender.utils.Logger;
2625

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

3433
private final LogSender logSender = new LogSender();
3534

36-
@Nullable
3735
@Override
3836
public IBinder onBind(Intent intent) {
3937
return null;

logsender/src/main/java/com/itsaky/androidide/logsender/socket/AbstractSocketCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,17 @@
1717

1818
package com.itsaky.androidide.logsender.socket;
1919

20-
import androidx.annotation.NonNull;
21-
import androidx.annotation.Nullable;
22-
2320
/**
2421
* Base class for socket commands.
2522
*
2623
* @author Akash Yadav
2724
*/
2825
public abstract class AbstractSocketCommand implements ISocketCommand {
2926

30-
@Nullable
3127
protected String[] getParams() {
3228
return null;
3329
}
3430

35-
@NonNull
3631
@Override
3732
public String toString() {
3833
final StringBuilder sb = new StringBuilder("/");

logsender/src/main/java/com/itsaky/androidide/logsender/socket/ISocketCommand.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package com.itsaky.androidide.logsender.socket;
1919

20-
import androidx.annotation.Nullable;
2120
import java.io.File;
2221

2322
/**

logsender/src/main/java/com/itsaky/androidide/logsender/socket/SenderInfoCommand.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
package com.itsaky.androidide.logsender.socket;
1919

20-
import androidx.annotation.Nullable;
21-
2220
/**
2321
* Command containing information about the log sender.
2422
*
@@ -40,7 +38,6 @@ public String getName() {
4038
return NAME;
4139
}
4240

43-
@Nullable
4441
@Override
4542
protected String[] getParams() {
4643
return new String[]{this.senderId, this.packageName};

logsender/src/main/java/com/itsaky/androidide/logsender/socket/SocketCommandParser.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717

1818
package com.itsaky.androidide.logsender.socket;
1919

20-
import androidx.annotation.Nullable;
2120
import java.util.UUID;
2221

2322
/**
2423
* @author Akash Yadav
2524
*/
2625
public final class SocketCommandParser {
2726

28-
@Nullable
2927
public static ISocketCommand parse(String line) {
3028
// remove leading '/'
3129
line = line.substring(1);
@@ -41,7 +39,6 @@ public static ISocketCommand parse(String line) {
4139
return null;
4240
}
4341

44-
@Nullable
4542
private static ISocketCommand create(String name) {
4643
if (name.equals(SignalCommand.STOP.getName())) {
4744
return SignalCommand.STOP;
@@ -50,7 +47,6 @@ private static ISocketCommand create(String name) {
5047
return null;
5148
}
5249

53-
@Nullable
5450
private static ISocketCommand createParameterized(String[] segments) {
5551
final String command = segments[0];
5652
if (SenderInfoCommand.NAME.equals(command)) {

0 commit comments

Comments
 (0)