Skip to content

Commit 12118c6

Browse files
committed
Adds cosmetics
1 parent d17528d commit 12118c6

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2017, Redis Labs
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ A Java Client Library for [ReJSON](https://github.com/redislabsmodules/rejson)
66

77
This client provides access to ReJSON's Redis API, and provides back-and-forth serialization between Java's and its objects.
88

9+
This project is currently WIP and the interface may change. Also note that only the core ReJSON commands are supported at the moment.
10+
911
## Installation
1012

1113
1. Install Jedis (once v3 is released this step will be obsolete)
@@ -44,3 +46,12 @@ JReJSON.set(jedis,"obj", 42, p);
4446
JReJSON.del(jedis,"obj", p); // back to almost nothing
4547

4648
```
49+
50+
# Contributing
51+
52+
Please use this repository's issue tracker to submit issues and pull requests.
53+
54+
# License
55+
56+
[BSD 2-Clause License](LICENSE)
57+

src/test/java/io/rejson/ClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public FooBarObject() {
1919
}
2020
}
2121

22+
/* A simple class that represents an object in real life */
2223
class IRLObject extends Object {
2324
public String str;
2425
public boolean bTrue;
@@ -29,7 +30,6 @@ public IRLObject() {
2930
}
3031
}
3132

32-
3333
public class ClientTest {
3434

3535
private Gson g;
@@ -53,7 +53,7 @@ public void basicSetGetShouldSucceed() throws Exception {
5353
JReJSON.set(jedis, "str", "strong");
5454
assertEquals("strong", JReJSON.get(jedis, "str"));
5555

56-
// A slightly more complex object
56+
// a slightly more complex object
5757
IRLObject obj = new IRLObject();
5858
JReJSON.set(jedis, "obj", obj);
5959
Object expected = g.fromJson(g.toJson(obj), Object.class);

0 commit comments

Comments
 (0)