src/main/java/org/jboss/util/propertyeditor/LongEditor.java
public void setAsText(final String text)
   {
      if (PropertyEditors.isNull(text))
      {
         setValue(null);
         return;
      }
      Object newValue = Long.valueOf(text);
      setValue(newValue);
   }
public void setAsText(final String text)
   {
      if (PropertyEditors.isNull(text))
      {
         setValue(null);
         return;
      }
      Object newValue = Long.valueOf(text);
      setValue(newValue);
   }
public void setAsText ( final String text ) { if ( PropertyEditors . isNull ( text ) ) { setValue ( null ) ; return ; } Object newValue = Long . valueOf ( text ) ; setValue ( newValue ) ; }
Map the argument text into and Integer using Integer.valueOf.
Map the argument text into and Integer using Integer . valueOf .