changing package name

I would like to change a package name from:

poorlyNamedPackageName

to

com.better.package.name

i attempted to do this using the rename refactoring, but as soon as i
typed the "." idea seemed to see this as invalid...

How is this done?

0
Avatar
Permanently deleted user

Renaming a package only allows you to change it's last component. First you need to move it (using the Move refactoring) to com.better.package and then rename it to name.

Yes, it's confusing.

0

请先登录再写评论。