aboutsummaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorjruesga <jorge@ruesga.com>2012-09-14 23:11:03 +0200
committerjruesga <jorge@ruesga.com>2012-09-14 23:11:03 +0200
commit4b43764a8c329d6f59836700b3ae6266529a844a (patch)
tree0196a7a2b2b3a762cfad741a5d94193d40584cac /tests/src
parent0ee3238a946729dd8d670a0ea37f0810b1070d81 (diff)
Use valueOf as ADT recommends
Use Boolean.valueOf, Long.valueOf, Integer.valueOf, ... instead of new Boolean(), new Long(), ..., as ADT recommends
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java b/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java
index d1e362d..bdabcc5 100644
--- a/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java
+++ b/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java
@@ -40,7 +40,7 @@ public class ProcessIdCommandTest extends AbstractConsoleTest {
* @throws Exception If test failed
*/
public void testId() throws Exception {
- Integer main = new Integer(android.os.Process.myPid());
+ Integer main = Integer.valueOf(android.os.Process.myPid());
Integer pid =
CommandHelper.getProcessId(
getContext(),