code: private static Number sum_impl_(Number x, Number y) {
          if (x instanceof Double || y instanceof Double)
              return Double.valueOf(x.doubleValue() + y.doubleValue());
          else
              return Long.valueOf(x.longValue() + y.longValue());
      }
docs: /* Calculate the sum of two numbers, preserving integral type if possible.