Reply to comment

Stitches parameters, Double or double

While flushing out more stitches functionality, I realized that I was using some java.lang.Double objects to pass distance, longitude and latitude values.  This came to my attention because in the client side, these are JAXBElements, so I need to use it as a JaxbElement, or include aegis files to map it to a proper value.  So I thought, why am I even using java.lang.Double?  No reason that I can remember.
Did a preliminary search, and the Gods of Microsoft recommend using primitives when and if ever possible.  Good 'nough for me, not that I trust them at all,but it gave me the reinforcement that I needed.  Where possible, you should use primitive types.
 
 

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options