@@ -74,9 +74,9 @@ private void testLocator(Locator locator) {
7474 Assert .assertEquals (new LocationInfo ("GOOGLE" , "GOOGLE" , "" , "" ), info );
7575 info = locator .find ("183.131.7.18" );
7676 Assert .assertEquals (new LocationInfo ("中国" , "浙江" , "杭州" , "" ), info );
77- info = locator .find (new byte []{(byte )183 ,(byte ) 131 ,7 , 18 });
77+ info = locator .find (new byte []{(byte ) 183 , (byte ) 131 , 7 , 18 });
7878 Assert .assertEquals (new LocationInfo ("中国" , "浙江" , "杭州" , "" ), info );
79- info = locator .find (Locator .bigEndian (new byte []{(byte )183 ,(byte ) 131 ,7 , 18 },0 ));
79+ info = locator .find (Locator .bigEndian (new byte []{(byte ) 183 , (byte ) 131 , 7 , 18 }, 0 ));
8080 Assert .assertEquals (new LocationInfo ("中国" , "浙江" , "杭州" , "" ), info );
8181
8282 }
@@ -99,8 +99,8 @@ public void bench() throws IOException {
9999 long t1 = System .currentTimeMillis ();
100100 l .checkDb ();
101101 long t2 = System .currentTimeMillis ();
102- System .out .println ("total time " + (t2 - t1 ));
103- System .out .println ("Ops " + (0xffffffffL * 1000 / (t2 - t1 )));
102+ System .out .println ("total time " + (t2 - t1 ));
103+ System .out .println ("Ops " + (0xffffffffL * 1000 / (t2 - t1 )));
104104
105105 }
106106}
0 commit comments