Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyuan committed Feb 24, 2015
1 parent a73823d commit 2aaf14d
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 29 deletions.
2 changes: 0 additions & 2 deletions core/src/main/java/tachyon/UserInfo.java
Expand Up @@ -17,8 +17,6 @@

import com.google.common.base.Preconditions;

import tachyon.conf.TachyonConf;

/**
* Represent one user in the worker daemon.
*/
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/tachyon/conf/TachyonConf.java
Expand Up @@ -323,7 +323,7 @@ public long getBytes(String key, long defaultValue) {

public Map<String, String> toMap() {
Map<String, String> copy = new HashMap<String, String>();
for (Enumeration names = mProperties.propertyNames(); names.hasMoreElements();) {
for (Enumeration<?> names = mProperties.propertyNames(); names.hasMoreElements();) {
Object key = names.nextElement();
copy.put(key.toString(), mProperties.get(key).toString());
}
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/tachyon/worker/TachyonWorker.java
Expand Up @@ -21,7 +21,6 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.google.common.primitives.Ints;
import org.apache.thrift.server.TServer;
import org.apache.thrift.server.TThreadedSelectorServer;
import org.apache.thrift.transport.TNonblockingServerSocket;
Expand Down
Expand Up @@ -15,7 +15,6 @@

package tachyon.worker.netty;


import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
Expand All @@ -27,7 +26,6 @@

import tachyon.Constants;
import tachyon.conf.TachyonConf;
import tachyon.util.CommonUtils;
import tachyon.worker.BlockHandler;
import tachyon.worker.BlocksLocker;
import tachyon.worker.hierarchy.StorageDir;
Expand Down
7 changes: 3 additions & 4 deletions core/src/test/java/tachyon/TachyonURITest.java
Expand Up @@ -14,8 +14,7 @@
*/
package tachyon;

import junit.framework.Assert;

import org.junit.Assert;
import org.junit.Test;

/**
Expand Down Expand Up @@ -341,11 +340,11 @@ public void joinTests() {
Assert.assertEquals(new TachyonURI("C:\\\\a\\b"),
new TachyonURI("C:\\\\a").join(new TachyonURI("\\b")));

final String pathWithSpecialChar = "×ö,ßbÁ»$o\u0005ÉÆ[\u000F| \u009E=BÕ½";
final String pathWithSpecialChar = "����,��b����$o\u0005����[\u000F| \u009E=B����";
Assert.assertEquals(new TachyonURI("/" + pathWithSpecialChar),
new TachyonURI("/").join(pathWithSpecialChar));

final String pathWithSpecialCharAndColon = "×ö,ßbÁ»$o\u0005ÉÆ[\u000F| \u009E=BÕ:½";
final String pathWithSpecialCharAndColon = "����,��b����$o\u0005����[\u000F| \u009E=B��:��";
Assert.assertEquals(new TachyonURI("/" + pathWithSpecialCharAndColon),
new TachyonURI("/").join(pathWithSpecialCharAndColon));
}
Expand Down
1 change: 0 additions & 1 deletion core/src/test/java/tachyon/UserInfoTest.java
Expand Up @@ -16,7 +16,6 @@

import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import tachyon.conf.TachyonConf;
Expand Down
Expand Up @@ -27,7 +27,6 @@

import tachyon.Constants;
import tachyon.TestUtils;
import tachyon.conf.TachyonConf;
import tachyon.master.LocalTachyonCluster;

/**
Expand Down
3 changes: 1 addition & 2 deletions core/src/test/java/tachyon/client/TachyonFileTest.java
Expand Up @@ -17,9 +17,8 @@
import java.io.IOException;
import java.io.RandomAccessFile;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down
3 changes: 1 addition & 2 deletions core/src/test/java/tachyon/client/table/RawColumnTest.java
Expand Up @@ -16,10 +16,9 @@

import java.io.IOException;

import junit.framework.Assert;

import org.apache.thrift.TException;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down
4 changes: 1 addition & 3 deletions core/src/test/java/tachyon/client/table/RawTableTest.java
Expand Up @@ -17,9 +17,8 @@
import java.io.IOException;
import java.nio.ByteBuffer;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand All @@ -31,7 +30,6 @@
import tachyon.client.TachyonFile;
import tachyon.client.TachyonFS;
import tachyon.client.WriteType;
import tachyon.conf.TachyonConf;
import tachyon.master.LocalTachyonCluster;

/**
Expand Down
3 changes: 1 addition & 2 deletions core/src/test/java/tachyon/command/UtilsTest.java
Expand Up @@ -16,8 +16,7 @@

import java.io.IOException;

import junit.framework.Assert;

import org.junit.Assert;
import org.junit.Test;

import tachyon.Constants;
Expand Down
3 changes: 1 addition & 2 deletions core/src/test/java/tachyon/master/EditLogOperationTest.java
Expand Up @@ -18,9 +18,8 @@
import java.nio.ByteBuffer;
import java.util.List;

import junit.framework.Assert;

import org.apache.commons.codec.binary.Base64;
import org.junit.Assert;
import org.junit.Test;

import com.fasterxml.jackson.core.type.TypeReference;
Expand Down
3 changes: 1 addition & 2 deletions core/src/test/java/tachyon/master/JournalTest.java
Expand Up @@ -20,9 +20,8 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down
3 changes: 1 addition & 2 deletions core/src/test/java/tachyon/master/MasterClientTest.java
Expand Up @@ -19,10 +19,9 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import junit.framework.Assert;

import org.apache.thrift.TException;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down
Expand Up @@ -18,9 +18,8 @@
import java.util.ArrayList;
import java.util.List;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down

0 comments on commit 2aaf14d

Please sign in to comment.