mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 00:02:59 +00:00
Lint: Change replace(String) to replace(char) all over
This commit is contained in:
13 files changed
+23
-23
No files matched your search
@@ -34,7 +34,7 @@ public class PersistentKeyRing extends KeyRing {
|
||||
public SessionKey put(Hash h, SessionKey sk) {
|
||||
SessionKey old = super.put(h, sk);
|
||||
if (!sk.equals(old)) {
|
||||
_ctx.router().saveConfig(PROP_PFX + h.toBase64().replace("=", "$"),
|
||||
_ctx.router().saveConfig(PROP_PFX + h.toBase64().replace('=', '$'),
|
||||
sk.toBase64());
|
||||
}
|
||||
return old;
|
||||
@@ -45,7 +45,7 @@ public class PersistentKeyRing extends KeyRing {
|
||||
SessionKey rv = super.remove(o);
|
||||
if (rv != null && o instanceof Hash) {
|
||||
Hash h = (Hash) o;
|
||||
_ctx.router().saveConfig(PROP_PFX + h.toBase64().replace("=", "$"), null);
|
||||
_ctx.router().saveConfig(PROP_PFX + h.toBase64().replace('=', '$'), null);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public class PersistentKeyRing extends KeyRing {
|
||||
if (key == null || key.length() != 44)
|
||||
continue;
|
||||
String hb = prop.substring(PROP_PFX.length());
|
||||
hb = hb.replace("$", "=");
|
||||
hb = hb.replace('$', '=');
|
||||
Hash dest = new Hash();
|
||||
SessionKey sk = new SessionKey();
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user