From c3db1aac8fb2ec776ccfecdf6804849b5b112adb Mon Sep 17 00:00:00 2001 From: adrianocrestani Date: Tue, 8 Jul 2008 05:19:28 +0000 Subject: -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 --- .../java/introspect/impl/JavaIntrospectionHelper.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'sandbox/mobile-android/tuscany-implementation-java') 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) { -- cgit v1.2.3