jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JJavaName.java
changeset 36263 d5333008e409
parent 33547 e4c76ac38b12
child 43852 93a527059d8a
equal deleted inserted replaced
36166:257b579d8132 36263:d5333008e409
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    83      *      that are common in programming languages, such as "my_child", "MyChild",
    83      *      that are common in programming languages, such as "my_child", "MyChild",
    84      *      "myChild", "MY-CHILD", "CODE003-child", etc, and mostly tries to do the right thing.
    84      *      "myChild", "MY-CHILD", "CODE003-child", etc, and mostly tries to do the right thing.
    85      *      ("my_children","MyChildren","myChildren", and "MY-CHILDREN", "CODE003-children" respectively)
    85      *      ("my_children","MyChildren","myChildren", and "MY-CHILDREN", "CODE003-children" respectively)
    86      *      <p>
    86      *      <p>
    87      *      Although this method only works for English words, it handles non-English
    87      *      Although this method only works for English words, it handles non-English
    88      *      words gracefully (by just returning it as-is.) For example, &#x65E5;&#x672C;&#x8A9E;
    88      *      words gracefully (by just returning it as-is.) For example, "&#x65E5;&#x672C;&#x8A9E;"
    89      *      will be returned as-is without modified, not "&#x65E5;&#x672C;&#x8A9E;s"
    89      *      will be returned as-is without modified, not "&#x65E5;&#x672C;&#x8A9E;s"
    90      *      <p>
    90      *      <p>
    91      *      This method doesn't handle suffixes very well. For example, passing
    91      *      This method doesn't handle suffixes very well. For example, passing
    92      *      "person56" will return "person56s", not "people56".
    92      *      "person56" will return "person56s", not "people56".
    93      *
    93      *