Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJ-1485: remove compile-time warnings #1254

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

davidangb
Copy link
Contributor

@davidangb davidangb commented Dec 4, 2023

On my laptop, before this PR, sbt clean test reported 7 compile warnings. After this PR, it reports 0. This PR should not change any functionality, it just cleans up code.


Have you read CONTRIBUTING.md lately? If not, do that first.

I, the developer opening this PR, do solemnly pinky swear that:

  • I've followed the instructions if I've made any changes to the API, especially if they're breaking changes
  • I've updated the RC_XXX release ticket with any manual steps required to release this change
  • I've updated the FISMA documentation if I've made any security-related changes, including auth, encryption, or auditing

In all cases:

  • Get two thumbsworth of review and PO signoff if necessary
  • Verify all tests go green
  • Squash and merge; you can delete your branch after this unless it's for a hotfix. In that case, don't delete it!
  • Test this change deployed correctly and works on dev environment after deployment

@@ -37,7 +37,7 @@ class RegisterService(val rawlsDao: RawlsDAO, val samDao: SamDAO, val thurloeDao
_ <- thurloeDao.saveKeyValues(registrationResultUserInfo, Map("isRegistrationComplete" -> Profile.currentVersion.toString))
_ <- if (!registerResult.allowed) {
thurloeDao.saveKeyValues(registrationResultUserInfo, Map("email" -> userInfo.userEmail))
} else Future.successful()
} else Future.successful(())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the compile warning was:

[warn] /Users/davidan/work/src/firecloud-orchestration/src/main/scala/org/broadinstitute/dsde/firecloud/service/RegisterService.scala:40:31: adaptation of an empty argument list by inserting () is deprecated: this is unlikely to be what you want
[warn]         signature: Future.successful[T](result: T): scala.concurrent.Future[T]
[warn]   given arguments: <none>
[warn]  after adaptation: Future.successful((): Unit)
[warn]       } else Future.successful()
[warn]                               ^

@@ -35,7 +35,7 @@ class HttpGoogleServicesDAOSpec extends AnyFlatSpec with Matchers with PrivateMe
val testProject = "broad-dsde-dev"
val priceListUrl = ConfigFactory.load().getString("googlecloud.priceListUrl")
val defaultPriceList = GooglePriceList(GooglePrices(Map("us" -> BigDecimal(-0.11)), UsTieredPriceItem(Map(1L -> BigDecimal(-0.22)))), "v1", "1")
implicit val system = ActorSystem("HttpGoogleCloudStorageDAOSpec")
implicit val system: ActorSystem = ActorSystem("HttpGoogleCloudStorageDAOSpec")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this - and the remainder of the changes in this PR - had compile warnings of:

Implicit definition should have explicit type

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a011aa8) 69.34% compared to head (a83a5e7) 69.34%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1254   +/-   ##
========================================
  Coverage    69.34%   69.34%           
========================================
  Files           97       97           
  Lines         3402     3402           
  Branches       372      372           
========================================
  Hits          2359     2359           
  Misses        1043     1043           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@calypsomatic calypsomatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@davidangb davidangb merged commit 87f8713 into develop Dec 5, 2023
11 checks passed
@davidangb davidangb deleted the da_compileWarnings branch December 5, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants