diff options
author | adrianocrestani <adrianocrestani@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-08 05:19:28 +0000 |
---|---|---|
committer | adrianocrestani <adrianocrestani@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-08 05:19:28 +0000 |
commit | c3db1aac8fb2ec776ccfecdf6804849b5b112adb (patch) | |
tree | aaf59ac4d347365ada871125b61a87bf603a7f88 /sandbox/mobile-android/tuscany-implementation-java | |
parent | e7dc1a8ddac9c28bcf57ea9d23b400ec65aa47f8 (diff) |
-adding the core-databinding, interface-java and interface-java-jaxws modules to android sandbox
-commented the RMI code and added workaround for the Java Bean usage
-commented the javax.jws code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@674723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/mobile-android/tuscany-implementation-java')
-rw-r--r-- | sandbox/mobile-android/tuscany-implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaIntrospectionHelper.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sandbox/mobile-android/tuscany-implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaIntrospectionHelper.java b/sandbox/mobile-android/tuscany-implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaIntrospectionHelper.java index 8297738be8..d800450453 100644 --- a/sandbox/mobile-android/tuscany-implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaIntrospectionHelper.java +++ b/sandbox/mobile-android/tuscany-implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaIntrospectionHelper.java @@ -306,7 +306,18 @@ public final class JavaIntrospectionHelper { if (!name.startsWith("set")) {
return name;
}
- return Introspector.decapitalize(name.substring(3));
+
+ if (name == null || name.length() == 0) {
+ return name;
+ }
+ if (name.length() > 1 && Character.isUpperCase(name.charAt(1)) &&
+ Character.isUpperCase(name.charAt(0))){
+ return name;
+ }
+ char chars[] = name.toCharArray();
+ chars[0] = Character.toLowerCase(chars[0]);
+ return new String(chars);
+
}
public static Class<?> getErasure(Type type) {
|