JavaMoney / javamoney-lib

JavaMoney financial libraries, extending and complementing JSR 354
Apache License 2.0
141 stars 69 forks source link

Fix wrongly named getInstance() #7

Closed keilw closed 10 years ago

keilw commented 10 years ago

As in Java 8 a no-op factory returning a singleton is called getInstance(), not of() which is used only with arguments. E.g. javax.microedition.event.EventManager, etc.

keilw commented 10 years ago

There are mixed cases, also in the RI where of() and of(someArgument) are used side-by side. It may be inconsistent with other parts of Java 8, but seems consistent here to use a no-op of().