Author: akazakov
Date: 2008-08-22 08:30:53 -0400 (Fri, 22 Aug 2008)
New Revision: 9863
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/TypeInfoCollector.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2673 Fixed
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/TypeInfoCollector.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/TypeInfoCollector.java 2008-08-22
10:22:31 UTC (rev 9862)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/TypeInfoCollector.java 2008-08-22
12:30:53 UTC (rev 9863)
@@ -1126,7 +1126,9 @@
} else {
name.delete(0, 3);
}
- name.setCharAt(0, Character.toLowerCase(name.charAt(0)));
+ if(name.length()<2 || Character.isLowerCase(name.charAt(1))) {
+ name.setCharAt(0, Character.toLowerCase(name.charAt(0)));
+ }
String propertyName = name.toString();
MemberPresentation pr = new MemberPresentation(propertyName, m);
if(!properties.contains(pr)) {