Update package path for Java.

We used to put IFoo.java with package android.hardware.foo.V1_0
under android/hardware/foo/1.0; the last element is fixed to
V1_0.

Test: compiles
Test: hidl_test_java

Bug: 33554192
Change-Id: I6a6a7d6c0a4c95e7c0797643bc98bec5c12889ca
diff --git a/FQName.h b/FQName.h
index 5e5ef08..d4601ab 100644
--- a/FQName.h
+++ b/FQName.h
@@ -51,6 +51,8 @@
     std::string atVersion() const;
     // Return version in the form "1.0" if it is present, otherwise empty string.
     std::string version() const;
+    // Return version in the form "V1_0" if it is present, otherwise empty string.
+    std::string sanitizedVersion() const;
 
     // The next two methods return the name part of the FQName, that is, the
     // part after the version field.  For example: