Skip to content

Commit

Permalink
Android: MDNSService: fix a few lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Aug 14, 2023
1 parent 12251d8 commit 12a384c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import android.os.Message;
import android.util.Log;

import androidx.annotation.NonNull;

import com.coboltforge.dontmind.multivnc.db.ConnectionBean;

public class MDNSService extends Service {
Expand All @@ -38,8 +40,8 @@ public class MDNSService extends Service {
private OnEventListener callback;

public interface OnEventListener {
public void onMDNSstartupCompleted(boolean wasSuccessful);
public void onMDNSnotify(final String conn_name, final ConnectionBean conn, final Hashtable<String,ConnectionBean> connectionTable);
void onMDNSstartupCompleted(boolean wasSuccessful);
void onMDNSnotify(final String conn_name, final ConnectionBean conn, final Hashtable<String,ConnectionBean> connectionTable);
}

/**
Expand Down Expand Up @@ -174,7 +176,7 @@ public void onServiceResolved(NsdServiceInfo serviceInfo) {

handler = new Handler() {

public void handleMessage(Message msg) {
public void handleMessage(@NonNull Message msg) {
// if interrupted, bail out at once
if(isInterrupted())
{
Expand Down

0 comments on commit 12a384c

Please sign in to comment.