IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)
constructer with expression
This commit is contained in:
parent
9957ffa06c
commit
1b05e022d0
|
@ -96,7 +96,7 @@ public final class AppsAction extends AbstractAction
|
|||
int pos = toolTipText.indexOf('&');
|
||||
if (pos != -1 && toolTipText.length() > pos) // We have a nemonic - creates ALT-_
|
||||
{
|
||||
Character ch = new Character(toolTipText.toUpperCase().charAt(pos+1));
|
||||
Character ch = Character.valueOf(toolTipText.toUpperCase().charAt(pos+1));
|
||||
if (ch != ' ')
|
||||
{
|
||||
toolTipText = toolTipText.substring(0, pos) + toolTipText.substring(pos+1);
|
||||
|
|
|
@ -97,7 +97,7 @@ public final class AppsAction extends AbstractAction
|
|||
int pos = toolTipText.indexOf('&');
|
||||
if (pos != -1 && toolTipText.length() > pos) // We have a nemonic - creates ALT-_
|
||||
{
|
||||
Character ch = new Character(toolTipText.toUpperCase().charAt(pos+1));
|
||||
Character ch = Character.valueOf(toolTipText.toUpperCase().charAt(pos+1));
|
||||
if (ch != ' ')
|
||||
{
|
||||
toolTipText = toolTipText.substring(0, pos) + toolTipText.substring(pos+1);
|
||||
|
|
|
@ -78,7 +78,7 @@ public class WAppsAction
|
|||
int pos = newToolTipText.indexOf('&');
|
||||
if (pos != -1 && newToolTipText.length() > pos) // We have a nemonic - creates ALT-_
|
||||
{
|
||||
Character ch = new Character(newToolTipText.toLowerCase().charAt(pos + 1));
|
||||
Character ch = Character.valueOf(newToolTipText.toLowerCase().charAt(pos + 1));
|
||||
if (ch != ' ')
|
||||
{
|
||||
// remove ampersand
|
||||
|
|
|
@ -112,7 +112,7 @@ public class Keylistener extends HtmlBasedComponent {
|
|||
}
|
||||
if (k == j + 1)
|
||||
throw new WrongValueException(MCommon.UNEXPECTED_CHARACTER,
|
||||
new Object[] { new Character(cc), keys });
|
||||
new Object[] { Character.valueOf(cc), keys });
|
||||
|
||||
final String s = keys.substring(j + 1, k).toLowerCase();
|
||||
if ("pgup".equals(s))
|
||||
|
@ -166,7 +166,7 @@ public class Keylistener extends HtmlBasedComponent {
|
|||
if (sbcur == null
|
||||
|| ((cc > 'Z' || cc < 'A') && (cc > 'z' || cc < 'a') && (cc > '9' || cc < '0')))
|
||||
throw new WrongValueException(MCommon.UNEXPECTED_CHARACTER,
|
||||
new Object[] { new Character(cc), keys });
|
||||
new Object[] { Character.valueOf(cc), keys });
|
||||
if (sbcur == sbsft)
|
||||
throw new WrongValueException("$" + cc + " not supported: "
|
||||
+ keys);
|
||||
|
|
Loading…
Reference in New Issue