-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement rough hacks for 2.13 (#204)
* Implement rough hacks for 2.13 * Remove unneeded SyncVar import * Reduce scope of changes for cross-compilation * Remove redundant imports * Add file for compatibility with 2.11 * Add comments explaining decisions made for 2.13
- Loading branch information
1 parent
c8cd3e9
commit a95fd55
Showing
12 changed files
with
218 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
core/src/main/scala-2.11/dev/profunktor/fs2rabbit/javaConversion.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2017-2019 ProfunKtor | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package dev.profunktor.fs2rabbit | ||
|
||
import scala.collection.convert.{DecorateAsJava, DecorateAsScala} | ||
|
||
// This exists purely for compatibility between Scala 2.13 and 2.12 since the | ||
// Java conversions have been moved into a different package between the two, | ||
// allowing us to have a single, consistent import everywhere else in this | ||
// codebase across both 2.13 and 2.12. | ||
object javaConversion extends DecorateAsJava with DecorateAsScala |
25 changes: 25 additions & 0 deletions
25
core/src/main/scala-2.12/dev/profunktor/fs2rabbit/javaConversion.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2017-2019 ProfunKtor | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package dev.profunktor.fs2rabbit | ||
|
||
import scala.collection.convert.{DecorateAsJava, DecorateAsScala} | ||
|
||
// This exists purely for compatibility between Scala 2.13 and 2.12 since the | ||
// Java conversions have been moved into a different package between the two, | ||
// allowing us to have a single, consistent import everywhere else in this | ||
// codebase across both 2.13 and 2.12. | ||
object javaConversion extends DecorateAsJava with DecorateAsScala |
25 changes: 25 additions & 0 deletions
25
core/src/main/scala-2.13/dev/profunktor/fs2rabbit/javaConversion.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2017-2019 ProfunKtor | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package dev.profunktor.fs2rabbit | ||
|
||
import scala.collection.convert.{AsJavaExtensions, AsScalaExtensions} | ||
|
||
// This exists purely for compatibility between Scala 2.13 and 2.12 since the | ||
// Java conversions have been moved into a different package between the two, | ||
// allowing us to have a single, consistent import everywhere else in this | ||
// codebase across both 2.13 and 2.12. | ||
object javaConversion extends AsJavaExtensions with AsScalaExtensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.