[java-support] branch master updated: JPAR-106 - address Java 9 deprecations
Ian Young
ian at iay.org.uk
Wed Nov 28 06:34:54 EST 2018
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch master
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=27d729e0ab9f8bf06d316f0be0255be1546c968f
The following commit(s) were added to refs/heads/master by this push:
new 27d729e JPAR-106 - address Java 9 deprecations
27d729e is described below
commit 27d729e0ab9f8bf06d316f0be0255be1546c968f
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Wed Nov 28 11:34:46 2018 +0000
JPAR-106 - address Java 9 deprecations
---
.../utilities/java/support/logic/ScriptedTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/test/java/net/shibboleth/utilities/java/support/logic/ScriptedTest.java b/src/test/java/net/shibboleth/utilities/java/support/logic/ScriptedTest.java
index 2f30f6b..7d24381 100644
--- a/src/test/java/net/shibboleth/utilities/java/support/logic/ScriptedTest.java
+++ b/src/test/java/net/shibboleth/utilities/java/support/logic/ScriptedTest.java
@@ -38,9 +38,9 @@ public class ScriptedTest {
Assert.assertTrue(test.apply(Boolean.TRUE));
Assert.assertFalse(test.apply(Boolean.FALSE));
- Assert.assertFalse(test.apply(new Integer(1)));
+ Assert.assertFalse(test.apply(Integer.valueOf(1)));
test.setReturnOnError(true);
- Assert.assertTrue(test.apply(new Integer(1)));
+ Assert.assertTrue(test.apply(Integer.valueOf(1)));
}
@Test public void testPredicateCustom() throws ScriptException {
@@ -51,7 +51,7 @@ public class ScriptedTest {
Assert.assertTrue(test.apply(Boolean.FALSE));
test.setCustomObject(Boolean.FALSE);
Assert.assertFalse(test.apply(Boolean.TRUE));
- test.setCustomObject(new Integer(1));
+ test.setCustomObject(Integer.valueOf(1));
Assert.assertFalse(test.apply("true"));
test.setReturnOnError(true);
Assert.assertTrue(test.apply("false"));
@@ -83,13 +83,13 @@ public class ScriptedTest {
Assert.assertEquals(test.apply(Boolean.FALSE), Boolean.FALSE);
Assert.assertEquals(test.apply(Boolean.TRUE), Boolean.TRUE);
- Assert.assertEquals(test.apply(new Integer(1)), new Integer(1));
+ Assert.assertEquals(test.apply(Integer.valueOf(1)), Integer.valueOf(1));
test.setOutputType(Boolean.class);
Assert.assertEquals(test.apply(Boolean.FALSE), Boolean.FALSE);
Assert.assertEquals(test.apply(Boolean.TRUE), Boolean.TRUE);
- Assert.assertNotEquals(test.apply(new Integer(1)), new Integer(1));
+ Assert.assertNotEquals(test.apply(Integer.valueOf(1)), Integer.valueOf(1));
test.setReturnOnError(Boolean.TRUE);
- Assert.assertEquals(test.apply(new Integer(1)), Boolean.TRUE);
+ Assert.assertEquals(test.apply(Integer.valueOf(1)), Boolean.TRUE);
test.setReturnOnError(Boolean.TRUE);
test.setOutputType(Integer.class);
@@ -101,7 +101,7 @@ public class ScriptedTest {
ScriptedFunction test = ScriptedFunction.inlineScript(returnCustom);
- test.setReturnOnError(new Integer(99));
+ test.setReturnOnError(Integer.valueOf(99));
test.setOutputType(Integer.class);
test.setInputType(Integer.class);
test.setCustomObject(12);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list