Here you can find the source of fieldToPropertyName(String name)
public static String fieldToPropertyName(String name)
//package com.java2s; //License from project: Apache License public class Main { /**/* w w w . ja v a 2 s . c o m*/ * Best effort basis to convert the given method name to a property name */ public static String fieldToPropertyName(String name) { return lowerFirst(name); } public static String lowerFirst(String name) { if (name.length() > 1) { name = Character.toLowerCase(name.charAt(0)) + name.substring(1); } else if (name.length() == 1) { name = Character.toLowerCase(name.charAt(0)) + ""; } return name; } }