Changeset d6bb5f6


Ignore:
Timestamp:
Nov 22, 2013 11:41:12 AM (7 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
8478bfb
Parents:
e9fec935
Message:

i2ptunnel: type arguments

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnel.java

    re9fec935 rd6bb5f6  
    367367     */
    368368    public void setClientOptions(Properties opts) {
    369         for (Iterator iter = _clientOptions.keySet().iterator(); iter.hasNext();) {
     369        for (Iterator<Object> iter = _clientOptions.keySet().iterator(); iter.hasNext();) {
    370370            Object key = iter.next();
    371371            if (!opts.containsKey(key))
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelServer.java

    re9fec935 rd6bb5f6  
    366366    private void buildSocketMap(Properties props) {
    367367        _socketMap.clear();
    368         for (Map.Entry e : props.entrySet()) {
     368        for (Map.Entry<Object, Object> e : props.entrySet()) {
    369369            String key = (String) e.getKey();
    370370            if (key.startsWith("targetForPort.")) {
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java

    re9fec935 rd6bb5f6  
    414414    public Properties getClientOptionProps() {
    415415        Properties opts = new Properties();
    416         for (Map.Entry e : _config.entrySet()) {
     416        for (Map.Entry<Object, Object> e : _config.entrySet()) {
    417417            String key = (String) e.getKey();
    418418            if (key.startsWith("option.")) {
     
    472472    public void setConfig(Properties config, String prefix) {
    473473        Properties props = new Properties();
    474         for (Map.Entry e : config.entrySet()) {
     474        for (Map.Entry<Object, Object> e : config.entrySet()) {
    475475            String key = (String) e.getKey();
    476476            if (key.startsWith(prefix)) {
     
    517517    public Properties getConfig(String prefix) {
    518518        Properties rv = new Properties();
    519         for (Map.Entry e : _config.entrySet()) {
     519        for (Map.Entry<Object, Object> e : _config.entrySet()) {
    520520            String key = (String) e.getKey();
    521521            String val = (String) e.getValue();
     
    539539    public String getClientOptions() {
    540540        StringBuilder opts = new StringBuilder(64);
    541         for (Map.Entry e : _config.entrySet()) {
     541        for (Map.Entry<Object, Object> e : _config.entrySet()) {
    542542            String key = (String) e.getKey();
    543543            if (key.startsWith("option.")) {
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks/I2PSOCKSTunnel.java

    re9fec935 rd6bb5f6  
    7171        Properties opts = getTunnel().getClientOptions();
    7272        proxies = new HashMap<String, List<String>>(1);
    73         for (Map.Entry e : opts.entrySet()) {
     73        for (Map.Entry<Object, Object> e : opts.entrySet()) {
    7474           String prop = (String)e.getKey();
    7575           if ((!prop.startsWith(PROP_PROXY_PREFIX)) || prop.length() <= PROP_PROXY_PREFIX.length())
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java

    re9fec935 rd6bb5f6  
    374374                                 "connectclient".equals(tun.getType());
    375375            Map<String, String> sorted = new TreeMap<String, String>();
    376             for (Map.Entry e : opts.entrySet()) {
     376            for (Map.Entry<Object, Object> e : opts.entrySet()) {
    377377                String key = (String)e.getKey();
    378378                if (_noShowSet.contains(key))
Note: See TracChangeset for help on using the changeset viewer.