Start with
Now rename
Note that
package bug
class Bug {
private[bug] def bar = 99
}
Now rename
bar
to anything not containing exactly 3 letters like x to getpackage bug
class Bug {
def x = 99
}
Note that
x
is now public, instead of package private.
Leave a comment
I have a fix for this (see https://github.com/mlangc/scala-refactoring/tree/rename-package-private-removes-access-modifiers-1002446); it needs some more documentation and polishing before being turned into a pull request though, but I'm on it.
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|