Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2016-09-09 02:04:13 -0400
committerJay Arthanareeswaran2016-09-09 02:28:06 -0400
commit4853bfa39b4537870df1c5f0503a1078575fae46 (patch)
tree51761251f48396e6a9bbd17b438807848e485c83 /org.eclipse.jdt.apt.tests
parentc73c59749fe704b89e42bd76c87939a7dd35cae6 (diff)
downloadeclipse.jdt.core-4853bfa39b4537870df1c5f0503a1078575fae46.tar.gz
eclipse.jdt.core-4853bfa39b4537870df1c5f0503a1078575fae46.tar.xz
eclipse.jdt.core-4853bfa39b4537870df1c5f0503a1078575fae46.zip
Bug 486013 - 'new Boolean' is deprecated. Altering the test to use
Boolean.valueOf()
Diffstat (limited to 'org.eclipse.jdt.apt.tests')
-rw-r--r--org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ExceptionHandlingTests.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ExceptionHandlingTests.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ExceptionHandlingTests.java
index 8c198d85f4..cf28f6f4fa 100644
--- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ExceptionHandlingTests.java
+++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ExceptionHandlingTests.java
@@ -1,10 +1,14 @@
/*******************************************************************************
- * Copyright (c) 2006, 2007 BEA Systems, Inc.
+ * Copyright (c) 2006, 2016 BEA Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
+ *
* Contributors:
* sbandow@bea.com - initial API and implementation
*
@@ -36,7 +40,7 @@ public class ExceptionHandlingTests extends APTTestBase {
IProject project = env.getProject( getProjectName() );
IPath srcRoot = getSourcePath();
- IPath testPath = env.addClass(srcRoot, "test", "Test", getCodeForTest("booleanValue = new Boolean(true)"));
+ IPath testPath = env.addClass(srcRoot, "test", "Test", getCodeForTest("booleanValue = Boolean.valueOf(true)"));
fullBuild( project.getFullPath() );
expectingOnlySpecificProblemFor(testPath, new ExpectedProblem("Test", "Type mismatch: cannot convert from Boolean to boolean", testPath));

Back to the top