-
Notifications
You must be signed in to change notification settings - Fork 14
JVM: Don't use deprecated Class#newInstance() #40
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
JVM: Don't use deprecated Class#newInstance() #40
Conversation
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.
Only the diff issues
jvm/src/main/scala/org/portablescala/reflect/InstantiatableClass.scala
Outdated
Show resolved
Hide resolved
jvm/src/main/scala/org/portablescala/reflect/InstantiatableClass.scala
Outdated
Show resolved
Hide resolved
jvm/src/main/scala/org/portablescala/reflect/InstantiatableClass.scala
Outdated
Show resolved
Hide resolved
jvm/src/main/scala/org/portablescala/reflect/InstantiatableClass.scala
Outdated
Show resolved
Hide resolved
@gzm0 those diffs are there so that it merges well with the original PR. It seemed easier this way. Or do you think it would be better to remove them anyway? |
Yes I think removing them would be better. We should trade the other PR if there are any conflicts. The reason for this is that we want a single PR to change one thing only (mich easier to understand the history that way). |
Sure thing! Done ✔️ |
LGTM. We can merge this after you squash all the commits. (unless @sjrd has further comments). |
@gzm0 I would be more than happy to do the squashing myself, but if you don't mind me asking, why don't you just do the Squash-merge of this PR yourself? GitHub makes it a trivial one-click-button operation 😸 |
Good question :) A bunch of reasons: On one hand habit from pre-GitHub support times. However, more importantly, Scala.js (and due to its history, this repo) uses Why do we do this: It allows us to have PRs that have multiple meaningful commits (which we use quite extensively in Scala.js core, for example: scala-js/scala-js#4450). |
2b05513
to
53d3772
Compare
IMHO this PR is a good example where squash merge from GitHub UI would make things easier for everybody, but never mind, it's squashed now 😉 |
From #39 (comment)