mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Remove @Override statements which cause compile errors on Win7 64bit with Eclipse Galileo 3.5 and Java 1.6.0_21-b07
This commit is contained in:
@@ -106,7 +106,6 @@ public class EntryActivity extends LockCloseActivity {
|
|||||||
Button edit = (Button) findViewById(R.id.entry_edit);
|
Button edit = (Button) findViewById(R.id.entry_edit);
|
||||||
edit.setOnClickListener(new View.OnClickListener() {
|
edit.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
EntryEditActivity.Launch(EntryActivity.this, mEntry);
|
EntryEditActivity.Launch(EntryActivity.this, mEntry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ public class EntryEditActivity extends LockCloseActivity {
|
|||||||
Button save = (Button) findViewById(R.id.entry_save);
|
Button save = (Button) findViewById(R.id.entry_save);
|
||||||
save.setOnClickListener(new View.OnClickListener() {
|
save.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
EntryEditActivity act = EntryEditActivity.this;
|
EntryEditActivity act = EntryEditActivity.this;
|
||||||
|
|
||||||
@@ -212,7 +211,6 @@ public class EntryEditActivity extends LockCloseActivity {
|
|||||||
Button cancel = (Button) findViewById(R.id.entry_cancel);
|
Button cancel = (Button) findViewById(R.id.entry_cancel);
|
||||||
cancel.setOnClickListener(new View.OnClickListener() {
|
cancel.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
finish();
|
finish();
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ public abstract class GroupActivity extends GroupBaseActivity {
|
|||||||
Button addEntry = (Button) findViewById(R.id.add_entry);
|
Button addEntry = (Button) findViewById(R.id.add_entry);
|
||||||
addEntry.setOnClickListener(new View.OnClickListener() {
|
addEntry.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
EntryEditActivity.Launch(GroupActivity.this, mGroup);
|
EntryEditActivity.Launch(GroupActivity.this, mGroup);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,7 +166,6 @@ public class PasswordActivity extends LockingActivity {
|
|||||||
// Show or hide password
|
// Show or hide password
|
||||||
checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCheckedChanged(CompoundButton buttonView,
|
public void onCheckedChanged(CompoundButton buttonView,
|
||||||
boolean isChecked) {
|
boolean isChecked) {
|
||||||
TextView password = (TextView) findViewById(R.id.password);
|
TextView password = (TextView) findViewById(R.id.password);
|
||||||
@@ -183,7 +182,6 @@ public class PasswordActivity extends LockingActivity {
|
|||||||
ImageButton browse = (ImageButton) findViewById(R.id.browse_button);
|
ImageButton browse = (ImageButton) findViewById(R.id.browse_button);
|
||||||
browse.setOnClickListener(new View.OnClickListener() {
|
browse.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (Interaction.isIntentAvailable(PasswordActivity.this, Intents.FILE_BROWSE)) {
|
if (Interaction.isIntentAvailable(PasswordActivity.this, Intents.FILE_BROWSE)) {
|
||||||
Intent i = new Intent(Intents.FILE_BROWSE);
|
Intent i = new Intent(Intents.FILE_BROWSE);
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ public class ProgressTask implements Runnable {
|
|||||||
|
|
||||||
private class CloseProcessDialog implements Runnable {
|
private class CloseProcessDialog implements Runnable {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run() {
|
public void run() {
|
||||||
mPd.dismiss();
|
mPd.dismiss();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,23 +90,19 @@ public class PwListAdapter extends BaseAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getCount() {
|
public int getCount() {
|
||||||
|
|
||||||
return groupsForViewing.size() + entriesForViewing.size();
|
return groupsForViewing.size() + entriesForViewing.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object getItem(int position) {
|
public Object getItem(int position) {
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getItemId(int position) {
|
public long getItemId(int position) {
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public View getView(int position, View convertView, ViewGroup parent) {
|
public View getView(int position, View convertView, ViewGroup parent) {
|
||||||
int size = groupsForViewing.size();
|
int size = groupsForViewing.size();
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ public class SetPasswordDialog extends CancelDialog {
|
|||||||
Button okButton = (Button) findViewById(R.id.ok);
|
Button okButton = (Button) findViewById(R.id.ok);
|
||||||
okButton.setOnClickListener(new View.OnClickListener() {
|
okButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
TextView passView = (TextView) findViewById(R.id.pass_password);
|
TextView passView = (TextView) findViewById(R.id.pass_password);
|
||||||
String pass = passView.getText().toString();
|
String pass = passView.getText().toString();
|
||||||
@@ -104,7 +103,6 @@ public class SetPasswordDialog extends CancelDialog {
|
|||||||
Button cancel = (Button) findViewById(R.id.cancel);
|
Button cancel = (Button) findViewById(R.id.cancel);
|
||||||
cancel.setOnClickListener(new View.OnClickListener() {
|
cancel.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
cancel();
|
cancel();
|
||||||
if ( mFinish != null ) {
|
if ( mFinish != null ) {
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ public class UpdateStatus {
|
|||||||
mResId = resId;
|
mResId = resId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run() {
|
public void run() {
|
||||||
mPD.setMessage(mCtx.getString(mResId));
|
mPD.setMessage(mCtx.getString(mResId));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ public class NativeAESCipherSpi extends CipherSpi {
|
|||||||
*/
|
*/
|
||||||
private static class Cleanup implements Runnable {
|
private static class Cleanup implements Runnable {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run() {
|
public void run() {
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class PwEntry implements Cloneable {
|
|||||||
|
|
||||||
public static class EntryNameComparator implements Comparator<PwEntry> {
|
public static class EntryNameComparator implements Comparator<PwEntry> {
|
||||||
|
|
||||||
@Override
|
|
||||||
public int compare(PwEntry object1, PwEntry object2) {
|
public int compare(PwEntry object1, PwEntry object2) {
|
||||||
return object1.getTitle().compareToIgnoreCase(object2.getTitle());
|
return object1.getTitle().compareToIgnoreCase(object2.getTitle());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -185,63 +185,51 @@ public class PwEntryV4 extends PwEntry implements ITimeLogger {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getCreationTime() {
|
public Date getCreationTime() {
|
||||||
return creation;
|
return creation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getExpiryTime() {
|
public Date getExpiryTime() {
|
||||||
return expireDate;
|
return expireDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getLastAccessTime() {
|
public Date getLastAccessTime() {
|
||||||
return lastAccess;
|
return lastAccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getLastModificationTime() {
|
public Date getLastModificationTime() {
|
||||||
return lastMod;
|
return lastMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getLocationChanged() {
|
public Date getLocationChanged() {
|
||||||
return parentGroupLastMod;
|
return parentGroupLastMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getUsageCount() {
|
public long getUsageCount() {
|
||||||
return usageCount;
|
return usageCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setCreationTime(Date date) {
|
public void setCreationTime(Date date) {
|
||||||
creation = date;
|
creation = date;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setExpiryTime(Date date) {
|
public void setExpiryTime(Date date) {
|
||||||
expireDate = date;
|
expireDate = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setLastAccessTime(Date date) {
|
public void setLastAccessTime(Date date) {
|
||||||
lastAccess = date;
|
lastAccess = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setLastModificationTime(Date date) {
|
public void setLastModificationTime(Date date) {
|
||||||
lastMod = date;
|
lastMod = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setLocationChanged(Date date) {
|
public void setLocationChanged(Date date) {
|
||||||
parentGroupLastMod = date;
|
parentGroupLastMod = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setUsageCount(long count) {
|
public void setUsageCount(long count) {
|
||||||
usageCount = count;
|
usageCount = count;
|
||||||
}
|
}
|
||||||
@@ -251,7 +239,6 @@ public class PwEntryV4 extends PwEntry implements ITimeLogger {
|
|||||||
return expires;
|
return expires;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setExpires(boolean exp) {
|
public void setExpires(boolean exp) {
|
||||||
expires = exp;
|
expires = exp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ public abstract class PwGroup {
|
|||||||
|
|
||||||
public static class GroupNameComparator implements Comparator<PwGroup> {
|
public static class GroupNameComparator implements Comparator<PwGroup> {
|
||||||
|
|
||||||
@Override
|
|
||||||
public int compare(PwGroup object1, PwGroup object2) {
|
public int compare(PwGroup object1, PwGroup object2) {
|
||||||
return object1.getName().compareToIgnoreCase(object2.getName());
|
return object1.getName().compareToIgnoreCase(object2.getName());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,73 +136,59 @@ public class PwGroupV4 extends PwGroup implements ITimeLogger {
|
|||||||
return parentGroupLastMod;
|
return parentGroupLastMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getCreationTime() {
|
public Date getCreationTime() {
|
||||||
return creation;
|
return creation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getExpiryTime() {
|
public Date getExpiryTime() {
|
||||||
return expireDate;
|
return expireDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getLastAccessTime() {
|
public Date getLastAccessTime() {
|
||||||
return lastAccess;
|
return lastAccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getLastModificationTime() {
|
public Date getLastModificationTime() {
|
||||||
return lastMod;
|
return lastMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Date getLocationChanged() {
|
public Date getLocationChanged() {
|
||||||
return parentGroupLastMod;
|
return parentGroupLastMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getUsageCount() {
|
public long getUsageCount() {
|
||||||
return usageCount;
|
return usageCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setCreationTime(Date date) {
|
public void setCreationTime(Date date) {
|
||||||
creation = date;
|
creation = date;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setExpiryTime(Date date) {
|
public void setExpiryTime(Date date) {
|
||||||
expireDate = date;
|
expireDate = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setLastAccessTime(Date date) {
|
public void setLastAccessTime(Date date) {
|
||||||
lastAccess = date;
|
lastAccess = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setLastModificationTime(Date date) {
|
public void setLastModificationTime(Date date) {
|
||||||
lastMod = date;
|
lastMod = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setLocationChanged(Date date) {
|
public void setLocationChanged(Date date) {
|
||||||
parentGroupLastMod = date;
|
parentGroupLastMod = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setUsageCount(long count) {
|
public void setUsageCount(long count) {
|
||||||
usageCount = count;
|
usageCount = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean expires() {
|
public boolean expires() {
|
||||||
return expires;
|
return expires;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setExpires(boolean exp) {
|
public void setExpires(boolean exp) {
|
||||||
expires = exp;
|
expires = exp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,5 @@ public abstract class RunnableOnFinish implements Runnable {
|
|||||||
mStatus = status;
|
mStatus = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
abstract public void run();
|
abstract public void run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ public class BrowserDialog extends Dialog {
|
|||||||
Button cancel = (Button) findViewById(R.id.cancel);
|
Button cancel = (Button) findViewById(R.id.cancel);
|
||||||
cancel.setOnClickListener(new View.OnClickListener() {
|
cancel.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
BrowserDialog.this.cancel();
|
BrowserDialog.this.cancel();
|
||||||
}
|
}
|
||||||
@@ -33,7 +32,6 @@ public class BrowserDialog extends Dialog {
|
|||||||
Button market = (Button) findViewById(R.id.install_market);
|
Button market = (Button) findViewById(R.id.install_market);
|
||||||
market.setOnClickListener(new View.OnClickListener() {
|
market.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Util.gotoUrl(getContext(), R.string.oi_filemanager_market);
|
Util.gotoUrl(getContext(), R.string.oi_filemanager_market);
|
||||||
BrowserDialog.this.cancel();
|
BrowserDialog.this.cancel();
|
||||||
@@ -43,7 +41,6 @@ public class BrowserDialog extends Dialog {
|
|||||||
Button web = (Button) findViewById(R.id.install_web);
|
Button web = (Button) findViewById(R.id.install_web);
|
||||||
web.setOnClickListener(new View.OnClickListener() {
|
web.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Util.gotoUrl(getContext(), R.string.oi_filemanager_web);
|
Util.gotoUrl(getContext(), R.string.oi_filemanager_web);
|
||||||
BrowserDialog.this.cancel();
|
BrowserDialog.this.cancel();
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ public class FileSelectActivity extends ListActivity {
|
|||||||
Button openButton = (Button) findViewById(R.id.open);
|
Button openButton = (Button) findViewById(R.id.open);
|
||||||
openButton.setOnClickListener(new View.OnClickListener() {
|
openButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String fileName = Util.getEditText(FileSelectActivity.this,
|
String fileName = Util.getEditText(FileSelectActivity.this,
|
||||||
R.id.file_filename);
|
R.id.file_filename);
|
||||||
@@ -110,7 +109,6 @@ public class FileSelectActivity extends ListActivity {
|
|||||||
Button createButton = (Button) findViewById(R.id.create);
|
Button createButton = (Button) findViewById(R.id.create);
|
||||||
createButton.setOnClickListener(new View.OnClickListener() {
|
createButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String filename = Util.getEditText(FileSelectActivity.this,
|
String filename = Util.getEditText(FileSelectActivity.this,
|
||||||
R.id.file_filename);
|
R.id.file_filename);
|
||||||
@@ -182,7 +180,6 @@ public class FileSelectActivity extends ListActivity {
|
|||||||
ImageButton browseButton = (ImageButton) findViewById(R.id.browse_button);
|
ImageButton browseButton = (ImageButton) findViewById(R.id.browse_button);
|
||||||
browseButton.setOnClickListener(new View.OnClickListener() {
|
browseButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (Interaction.isIntentAvailable(FileSelectActivity.this, Intents.FILE_BROWSE)) {
|
if (Interaction.isIntentAvailable(FileSelectActivity.this, Intents.FILE_BROWSE)) {
|
||||||
Intent i = new Intent(Intents.FILE_BROWSE);
|
Intent i = new Intent(Intents.FILE_BROWSE);
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ public class AppSettingsActivity extends LockingClosePreferenceActivity {
|
|||||||
Preference keyFile = findPreference(getString(R.string.keyfile_key));
|
Preference keyFile = findPreference(getString(R.string.keyfile_key));
|
||||||
keyFile.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
keyFile.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
Boolean value = (Boolean) newValue;
|
Boolean value = (Boolean) newValue;
|
||||||
|
|
||||||
@@ -69,7 +68,6 @@ public class AppSettingsActivity extends LockingClosePreferenceActivity {
|
|||||||
Preference rounds = findPreference(getString(R.string.rounds_key));
|
Preference rounds = findPreference(getString(R.string.rounds_key));
|
||||||
rounds.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
rounds.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
setRounds(App.getDB(), preference);
|
setRounds(App.getDB(), preference);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user