Skip to content

Commit 2b3d125

Browse files
committed
update
1 parent 1c8c427 commit 2b3d125

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import java.util.regex.Matcher
22

33
apply plugin: 'java'
44

5-
sourceCompatibility = 1.4
6-
targetCompatibility = 1.4
5+
sourceCompatibility = 1.5
6+
targetCompatibility = 1.5
77
version = '1.0'
88
[compileJava,compileTestJava,javadoc]*.options*.encoding = 'UTF-8'
99

src/test/java/qiniu/ip17mon/LocationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)