Despite the label of backwards incompatibility, in the vast majority of cases the simple addition of a '3'
to an import statement will suffice for your migration. For example, using Perl:
find . -type f -name '*.java' | xargs perl -pi -e 's/org\.apache\.commons\.lang\./org.apache.commons.lang3./g'
+Maven users will need to update the groupId from commons-lang
to org.apache.commons
,
+and the artifactId from commons-lang
to commons-lang3
.
Enum package - Java 5 provided enums out of the box, therefore we dispensed with both the deprecated enum package,