1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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, "日本語" |
88 * words gracefully (by just returning it as-is.) For example, "{@literal 日本語}" |
89 * will be returned as-is without modified, not "日本語s" |
89 * will be returned as-is without modified, not "{@literal 日本語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 * |
94 * @return |
94 * @return |