I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 147e257c authored by zzz's avatar zzz
Browse files

comment out main()

parent 68ccb3a9
No related branches found
No related tags found
No related merge requests found
...@@ -1188,6 +1188,7 @@ public class BlockfileNamingService extends DummyNamingService { ...@@ -1188,6 +1188,7 @@ public class BlockfileNamingService extends DummyNamingService {
* BlockfileNamingService [force] * BlockfileNamingService [force]
* force = force writable * force = force writable
*/ */
/****
public static void main(String[] args) { public static void main(String[] args) {
Properties ctxProps = new Properties(); Properties ctxProps = new Properties();
if (args.length > 0 && args[0].equals("force")) if (args.length > 0 && args[0].equals("force"))
...@@ -1284,4 +1285,5 @@ public class BlockfileNamingService extends DummyNamingService { ...@@ -1284,4 +1285,5 @@ public class BlockfileNamingService extends DummyNamingService {
System.out.println("HTNS took " + DataHelper.formatDuration(System.currentTimeMillis() - start)); System.out.println("HTNS took " + DataHelper.formatDuration(System.currentTimeMillis() - start));
System.out.println("found " + found + " notfound " + notfound); System.out.println("found " + found + " notfound " + notfound);
} }
****/
} }
...@@ -463,6 +463,7 @@ public class SingleFileNamingService extends NamingService { ...@@ -463,6 +463,7 @@ public class SingleFileNamingService extends NamingService {
_fileLock.writeLock().unlock(); _fileLock.writeLock().unlock();
} }
/****
public static void main(String[] args) { public static void main(String[] args) {
NamingService ns = new SingleFileNamingService(I2PAppContext.getGlobalContext(), "hosts.txt"); NamingService ns = new SingleFileNamingService(I2PAppContext.getGlobalContext(), "hosts.txt");
Destination d = new Destination(); Destination d = new Destination();
...@@ -482,4 +483,5 @@ public class SingleFileNamingService extends NamingService { ...@@ -482,4 +483,5 @@ public class SingleFileNamingService extends NamingService {
b = !ns.putIfAbsent("bbbbb", d); b = !ns.putIfAbsent("bbbbb", d);
System.out.println("Test 6 pass? " + b); System.out.println("Test 6 pass? " + b);
} }
****/
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment