Skip to content

Commit

Permalink
Improved error message; #70
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Sep 30, 2019
1 parent 6696b9e commit 6a416e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/helger/jcodemodel/JPackage.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static boolean isForcePackageNameLowercase ()

/**
* Only allow lower case package names
*
*
* @param bForcePackageNameLowercase
* <code>true</code> to force lower case package names are recommended
* by
Expand Down Expand Up @@ -191,7 +191,7 @@ protected JPackage (@Nonnull final String sName, @Nonnull final JCodeModel aOwne
final String [] aParts = JCStringHelper.getExplodedArray ('.', sName);
for (final String sPart : aParts)
if (isForbiddenPackageNamePart (sPart))
throw new IllegalArgumentException ("The package name '" + sName + "' is invalid");
throw new IllegalArgumentException ("Part '" + sPart + "' of the package name '" + sName + "' is invalid");
}

m_aOwner = aOwner;
Expand Down

0 comments on commit 6a416e1

Please sign in to comment.