Commit 30e93751 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Weaken access modifier

parent 0b3bbda6
......@@ -318,7 +318,7 @@ public class NetworkPacket {
private Socket inputSocket;
private long payloadSize;
public Payload(long payloadSize) {
Payload(long payloadSize) {
this((InputStream)null, payloadSize);
}
......
......@@ -46,7 +46,7 @@ import java.util.List;
import androidx.core.content.FileProvider;
import androidx.documentfile.provider.DocumentFile;
public class CompositeReceiveFileRunnable implements Runnable {
class CompositeReceiveFileRunnable implements Runnable {
interface CallBack {
void onSuccess(CompositeReceiveFileRunnable runnable);
void onError(CompositeReceiveFileRunnable runnable, Throwable error);
......
......@@ -61,7 +61,7 @@ import androidx.core.content.ContextCompat;
@PluginFactory.LoadablePlugin
public class SharePlugin extends Plugin {
private final static String PACKET_TYPE_SHARE_REQUEST = "kdeconnect.share.request";
final static String PACKET_TYPE_SHARE_REQUEST_UPDATE = "kdeconnect.share.request.update";
private final static String PACKET_TYPE_SHARE_REQUEST_UPDATE = "kdeconnect.share.request.update";
final static String KEY_NUMBER_OF_FILES = "numberOfFiles";
final static String KEY_TOTAL_PAYLOAD_SIZE = "totalPayloadSize";
......@@ -69,7 +69,7 @@ public class SharePlugin extends Plugin {
private final static boolean openUrlsDirectly = true;
private ExecutorService executorService;
private final Handler handler;
CompositeReceiveFileRunnable receiveFileRunnable;
private CompositeReceiveFileRunnable receiveFileRunnable;
private final Callback receiveFileRunnableCallback;
public SharePlugin() {
......
......@@ -194,8 +194,8 @@ public class AlertDialogFragment extends DialogFragment implements DialogInterfa
//TODO: Generify so the actual AlertDialogFragment subclass can be passed as an argument
public static abstract class Callback {
public void onPositiveButtonClicked() {}
public void onNegativeButtonClicked() {}
void onNegativeButtonClicked() {}
public void onDismiss() {}
public void onCancel() {}
void onCancel() {}
}
}
......@@ -91,7 +91,7 @@ public class CustomDevicesAdapter extends RecyclerView.Adapter<CustomDevicesAdap
@BindView(R.id.swipeableView) FrameLayout swipeableView;
@BindView(R.id.deviceNameOrIP) TextView deviceNameOrIP;
public ViewHolder(@NonNull View itemView) {
ViewHolder(@NonNull View itemView) {
super(itemView);
ButterKnife.bind(this, itemView);
......
......@@ -38,7 +38,7 @@ public class SmallEntryItem implements ListAdapter.Item {
this.clickListener = null;
}
protected SmallEntryItem(String title, View.OnClickListener clickListener) {
SmallEntryItem(String title, View.OnClickListener clickListener) {
this.title = title;
this.clickListener = clickListener;
}
......
......@@ -57,7 +57,7 @@ public class MainActivity extends AppCompatActivity implements SharedPreferences
@BindView(R.id.navigation_drawer) NavigationView mNavigationView;
@BindView(R.id.drawer_layout) DrawerLayout mDrawerLayout;
@BindView(R.id.toolbar) Toolbar mToolbar;
TextView mNavViewDeviceName;
private TextView mNavViewDeviceName;
private String mCurrentDevice;
private int mCurrentMenuEntry;
......
......@@ -31,7 +31,7 @@ import androidx.annotation.NonNull;
import androidx.preference.PreferenceFragmentCompat;
public class PluginSettingsFragment extends PreferenceFragmentCompat {
public static final String ARG_PLUGIN_KEY = "plugin_key";
private static final String ARG_PLUGIN_KEY = "plugin_key";
private String pluginKey;
......
......@@ -22,7 +22,7 @@ import androidx.preference.PreferenceScreen;
import androidx.preference.SwitchPreferenceCompat;
import androidx.preference.TwoStatePreference;
public class SettingsFragment extends PreferenceFragmentCompat {
class SettingsFragment extends PreferenceFragmentCompat {
private MainActivity mainActivity;
private EditTextPreference renameDevice;
......
......@@ -58,7 +58,7 @@ import static org.mockito.Matchers.eq;
@PrepareForTest({Base64.class, Log.class, PreferenceManager.class})
public class DeviceTest {
Context context;
private Context context;
// Creating a paired device before each test case
@Before
......
......@@ -16,7 +16,7 @@ import androidx.annotation.Nullable;
*
* From https://gist.github.com/amardeshbd/354173d00b988574ee5019c4ba0c8a0b
*/
public class MockSharedPreference implements SharedPreferences {
class MockSharedPreference implements SharedPreferences {
private final HashMap<String, Object> preferenceMap;
private final MockSharedPreferenceEditor preferenceEditor;
......@@ -89,11 +89,11 @@ public class MockSharedPreference implements SharedPreferences {
}
public static class MockSharedPreferenceEditor implements Editor {
static class MockSharedPreferenceEditor implements Editor {
private final HashMap<String, Object> preferenceMap;
public MockSharedPreferenceEditor(final HashMap<String, Object> preferenceMap) {
MockSharedPreferenceEditor(final HashMap<String, Object> preferenceMap) {
this.preferenceMap = preferenceMap;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment