Acknowledged

Typos on the Persisting Data page.

On the Persisting Data page, in the "Accessing Properties and Settings: Application.Properties" section, in the API column of the table, it says Properties.getValue(), and Storage.setValue(). I'm pretty sure the latter should be Properties.setValue().

Also, in the description column, it says "Store information by key in persisted storage. Property values must be defined in the application settings xml. If a key that is not present in application settings is passed to getValue(), an exception will be thrown", but it should say "setValue()" rather than "getValue()".

The docs are already somewhat confusing wrt to exactly what you should use each module for (partly because it depends on the api version) - but these typos just make things worse.

  • Since this is just as broken in the latest docs, I'm going to try one more picture in hopes that someone will notice what I'm actually saying (and sorry while what you've said is true, you've completely missed the point).

  • Pinging this again. It's obviously a typo (actually a pair of typos), and would be really easy to fix.

  • Yes, I know that. But this section is describing the Properties API, but talks about Properties.getValue(), and Storage.setValue(). Clearly the latter should be Properties.setValue().

    And *then* in the description for "Storage".setValue() it says that Properties.getValue() will throw - which is true, but not relevant (and note that it already told us that on the row above). It should say that Properties.setValue() will throw.

    Maybe a picture will make it clearer. This section is all about Properties not Storage (the previous section was Storage), and in particular its documenting Properties.getValue() and Properties.setValue().

  • Property.getValue() throws an exception if the key is unknown, as it says, while Storage.getValue() doesn't and returns a null (as long as the type of the key is valid).  See the API Doc for what throws an exception for Storage/Properties and getValue()/setValue()