private OsmUser readUser(){
  String rawUserId;
  String rawUserName;
  rawUserId=reader.getAttributeValue(null,ATTRIBUTE_NAME_USER_ID);
  rawUserName=reader.getAttributeValue(null,ATTRIBUTE_NAME_USER);
  if (rawUserId != null) {
    int userId;
    String userName;
    userId=Integer.parseInt(rawUserId);
    if (rawUserName == null) {
      userName="";
    }
 else {
      userName=rawUserName;
    }
    return new OsmUser(userId,userName);
  }
 else {
    return OsmUser.NONE;
  }
}

private OsmUser readUser ( ) { String rawUserId ; String rawUserName ; rawUserId = reader . getAttributeValue ( null , ATTRIBUTE_NAME_USER_ID ) ; rawUserName = reader . getAttributeValue ( null , ATTRIBUTE_NAME_USER ) ; if ( rawUserId != null ) { int userId ; String userName ; userId = Integer . parseInt ( rawUserId ) ; if ( rawUserName == null ) { userName = "" ; } else { userName = rawUserName ; } return new OsmUser ( userId , userName ) ; } else { return OsmUser . NONE ; } }
creates a user instance based on the current entity attributes . this includes identifying the case where no user is available .
