susidns: type arguments, unused imports

This commit is contained in:
str4d
2013-11-21 10:17:35 +00:00
parent ae79deff39
commit 4bddf8ae0b
4 changed files with 4 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ public class AddressbookBean extends BaseBean
public AddressbookBean()
{
super();
deletionMarks = new LinkedList();
deletionMarks = new LinkedList<String>();
beginIndex = 0;
endIndex = DISPLAY_SIZE - 1;
}
@@ -150,7 +150,7 @@ public class AddressbookBean extends BaseBean
try {
fis = new FileInputStream( getFileName() );
addressbook.load( fis );
LinkedList<AddressBean> list = new LinkedList();
LinkedList<AddressBean> list = new LinkedList<AddressBean>();
Enumeration e = addressbook.keys();
while( e.hasMoreElements() ) {
String name = (String)e.nextElement();

View File

@@ -34,7 +34,6 @@ import java.util.Properties;
import net.i2p.I2PAppContext;
import net.i2p.data.DataHelper;
import net.i2p.util.OrderedProperties;
import net.i2p.util.SecureFileOutputStream;
public class ConfigBean implements Serializable {

View File

@@ -146,7 +146,7 @@ public class NamingServiceBean extends AddressbookBean
Debug.debug("Searching within " + service + " with filename=" + getFileName() + " and with filter=" + filter + " and with search=" + search);
String message = "";
try {
LinkedList<AddressBean> list = new LinkedList();
LinkedList<AddressBean> list = new LinkedList<AddressBean>();
Map<String, Destination> results;
Properties searchProps = new Properties();
// only blockfile needs this

View File

@@ -37,7 +37,6 @@ import java.util.List;
import net.i2p.data.DataHelper;
import net.i2p.util.SecureFileOutputStream;
import net.i2p.util.SystemVersion;
public class SubscriptionsBean extends BaseBean
{
@@ -89,7 +88,7 @@ public class SubscriptionsBean extends BaseBean
File file = new File( getFileName() );
try {
// trim and sort
List<String> urls = new ArrayList();
List<String> urls = new ArrayList<String>();
InputStream in = new ByteArrayInputStream(content.getBytes("UTF-8"));
String line;
while ((line = DataHelper.readLine(in)) != null) {