Skip to content

Commit

Permalink
Adding documentation for async-log
Browse files Browse the repository at this point in the history
Autocommit Wed Jan 14 15:14:05 EST 2015
  • Loading branch information
mxro committed Jan 14, 2015
1 parent 04a2ee6 commit 2a2523f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/mxro/async/properties/PropertiesCommon.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static PropertyNode createUnsafe(final PropertyFactory factory) {
* @param value
* @return
*/
public static PropertyOperation set(final String id, final Object value) {
public static PropertyOperation<Object> set(final String id, final Object value) {
return new SetValueOperation(value).setId(id);
}

Expand All @@ -41,7 +41,7 @@ public static PropertyOperation set(final String id, final Object value) {
* @param id
* @return
*/
public static PropertyOperation remove(final String id) {
public static PropertyOperation<Object> remove(final String id) {
return new ClearOperation().setId(id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class TestSetValue {
public void test() {
PropertyFactory _defaultFactory = Properties.defaultFactory();
final PropertyNode props = Properties.create(_defaultFactory);
PropertyOperation _set = Properties.set("value", "string");
props.record(_set);
PropertyOperation<Object> _set = Properties.set("value", "string");
props.<Object>record(_set);
Promise<String> _retrieve = props.<String>retrieve("value", String.class);
String _get = _retrieve.get();
TestSetValue.<String, String>operator_doubleArrow(_get, "string");
Expand Down

0 comments on commit 2a2523f

Please sign in to comment.