The only risks are around explicit (or more likely, implicit) package definitions being out of date.
For example, all of your Java files, since they're in the same package, will not need to import each other. After the migration, they'll either need to use the fully-qualified name of classes in other packages, or import them.
In a similar vein, anywhere a class name appears (e.g. in Spring config files, perhaps properties files that name classes) it will almost certainly need to be updated to the fully qualified name (e.g. "com.company.package.MyClass" instead of just "MyClass").
It's the latter one that's likely to be the most troublesome; as long as you have a good build process and ensure you're building from scratch, any Java errors should be caught at the compilation stage (unless you're using something weird like Class.forName("MyClass")
in your source). The config file problems, though, will manifest at runtime if not sorted out - and then, typically when they're about to be used. If a seldom-used feature has a Spring config referencing one of your classes and you forget to change it, you won't find out about it until it fails.
On the plus side - decent IDEs will have a "rename" or "change package" refactoring, which should be able to find occurences of your class name in text files too.