diff --git a/javasphinx/compiler.py b/javasphinx/compiler.py
index <HASH>..<HASH> 100644
--- a/javasphinx/compiler.py
+++ b/javasphinx/compiler.py
@@ -277,6 +277,13 @@ class JavadocRestCompiler(object):
                 else:
                     package_parts.append(part)
 
+
+            # If the import's final part wasn't capitalized,
+            # append it to the class parts anyway so sphinx doesn't complain.
+            if cls_parts == []:
+                parts = imp.path.split('.')
+                cls_parts.append(parts[-1])
+
             package = '.'.join(package_parts)
             cls = '.'.join(cls_parts)
Fix non-capitalized part bug

Fix issue where if the final piece of the import string wasn't capitalized, only one string would appear in the final RST. Which is fine as far as Java is concerned, but the sphinx RST compiler isn't happy about it.



    ERROR: Error in "java:import" directive:

    2 argument(s) required, 1 supplied.



This change force appends the final piece as a class part.