-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix non-prefix agnostic test #1436
base: main
Are you sure you want to change the base?
Fix non-prefix agnostic test #1436
Conversation
884a38b
to
9e0f821
Compare
- fix test to make prefix agnostic - fix test that was failing because a scala Buffer doesn't automatically convert to a Seq anymore - update nullary method with no side effects to remove paren - fix hard coded scala version in integration tests Deprecation/Compatibility: Note that some changes in 2.13 may affect the order of prefixes with the same namespace and may also cause them to appear uniformly but interchangeably. Ex: `xmlns="urn:bin" xmlns:b="urn:bin" <element/>` may become `xmlns:b="urn:bin" xmlns="urn:bin" <b:element/>` and vice versa. DAFFODIL-2152
9e0f821
to
997a3a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
def devNull(): String = if (isWindows) "NUL" else "/dev/null" | ||
def devNull: String = if (isWindows) "NUL" else "/dev/null" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a problem but I have to laugh at the irony of removing parens from function definitions and adding them to the function calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well this one gave me the option to remove the parens from the def or add it to the call so I went with the former :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -50,7 +50,7 @@ public void testPrimaryConstructor() { | |||
false, | |||
NoRoundTrip$.MODULE$, | |||
"off", | |||
CollectionConverters.asScala(Arrays.asList("daffodil", "ibm")), | |||
CollectionConverters.asScala(Arrays.asList("daffodil", "ibm")).toSeq(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does toSeq need () arguments? It's a pure conversion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's because we're in a Java file
Deprecation/Compatibility:
Note that some changes in 2.13 may affect the order of prefixes with the same namespace and may also cause them to appear uniformly but interchangeably. Ex:
xmlns="urn:bin" xmlns:b="urn:bin" <element/>
may becomexmlns:b="urn:bin" xmlns="urn:bin" <b:element/>
and vice versa.DAFFODIL-2152