Skip to content

Commit 669608e

Browse files
committed
#25 new java
1 parent 641a6ff commit 669608e

39 files changed

+88
-213
lines changed

pom.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@
9393
<dependency>
9494
<groupId>org.projectlombok</groupId>
9595
<artifactId>lombok</artifactId>
96-
<version>1.16.6</version>
96+
<version>1.18.28</version>
9797
</dependency>
9898
<dependency>
9999
<groupId>com.jcabi</groupId>
100100
<artifactId>jcabi-aspects</artifactId>
101-
<version>0.22.3</version>
101+
<version>0.25.1</version>
102102
</dependency>
103103
<dependency>
104104
<groupId>com.jcabi</groupId>
105105
<artifactId>jcabi-log</artifactId>
106-
<version>0.17.1</version>
106+
<version>0.23.0</version>
107107
</dependency>
108108
<dependency>
109109
<groupId>javax.ws.rs</groupId>
@@ -114,12 +114,12 @@
114114
<dependency>
115115
<groupId>com.jcabi</groupId>
116116
<artifactId>jcabi-http</artifactId>
117-
<version>1.14.2</version>
117+
<version>1.20.1</version>
118118
</dependency>
119119
<dependency>
120120
<groupId>com.jcabi</groupId>
121121
<artifactId>jcabi-xml</artifactId>
122-
<version>0.17.2</version>
122+
<version>0.28.0</version>
123123
</dependency>
124124
<dependency>
125125
<groupId>com.jcabi</groupId>
@@ -129,47 +129,47 @@
129129
<dependency>
130130
<groupId>org.apache.commons</groupId>
131131
<artifactId>commons-lang3</artifactId>
132-
<version>3.4</version>
132+
<version>3.12.0</version>
133133
</dependency>
134134
<dependency>
135135
<groupId>com.jcabi</groupId>
136136
<artifactId>jcabi-matchers</artifactId>
137-
<version>1.3</version>
137+
<version>1.6.0</version>
138138
<scope>runtime</scope>
139139
</dependency>
140140
<dependency>
141141
<groupId>org.glassfish</groupId>
142142
<artifactId>javax.json</artifactId>
143-
<version>1.0.4</version>
143+
<version>1.1.4</version>
144144
<scope>runtime</scope>
145145
</dependency>
146146
<dependency>
147147
<groupId>com.sun.jersey</groupId>
148148
<artifactId>jersey-client</artifactId>
149-
<version>1.19</version>
149+
<version>1.19.4</version>
150150
<scope>runtime</scope>
151151
</dependency>
152152
<dependency>
153153
<groupId>org.hamcrest</groupId>
154-
<artifactId>hamcrest-core</artifactId>
155-
<version>1.3</version>
154+
<artifactId>hamcrest</artifactId>
155+
<version>2.2</version>
156156
<scope>compile</scope>
157157
</dependency>
158158
<dependency>
159159
<groupId>javax.servlet</groupId>
160160
<artifactId>javax.servlet-api</artifactId>
161-
<version>4.0.0-b01</version>
161+
<version>4.0.1</version>
162162
</dependency>
163163
<dependency>
164164
<groupId>com.sun.grizzly</groupId>
165165
<artifactId>grizzly-servlet-webserver</artifactId>
166-
<version>1.9.64</version>
166+
<version>1.9.65</version>
167167
<scope>test</scope>
168168
</dependency>
169169
<dependency>
170170
<groupId>javax.validation</groupId>
171171
<artifactId>validation-api</artifactId>
172-
<version>1.1.0.Final</version>
172+
<version>2.0.1.Final</version>
173173
<scope>test</scope>
174174
</dependency>
175175
</dependencies>

src/main/aspect/.gitkeep

Whitespace-only changes.

src/main/aspect/README.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/java/co/stateful/Atomic.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
package co.stateful;
3131

3232
import com.jcabi.aspects.Loggable;
33-
import com.jcabi.aspects.Tv;
3433
import com.jcabi.log.Logger;
3534
import java.io.IOException;
3635
import java.security.SecureRandom;
@@ -120,7 +119,7 @@ public Atomic(final Callable<T> clbl, final Lock lck) {
120119
* @param lbl Label to use for locking and unlocking (can be empty)
121120
*/
122121
public Atomic(final Callable<T> clbl, final Lock lck, final String lbl) {
123-
this(clbl, lck, lbl, TimeUnit.MINUTES.toMillis((long) Tv.FIVE));
122+
this(clbl, lck, lbl, TimeUnit.MINUTES.toMillis(5L));
124123
}
125124

126125
// @checkstyle ParameterNumberCheck (15 lines)
@@ -173,7 +172,7 @@ public void run() {
173172
final long delay = Math.min(
174173
TimeUnit.MINUTES.toMillis(1L),
175174
Math.abs(
176-
(long) Tv.HUNDRED + (long) Atomic.RANDOM.nextInt(Tv.HUNDRED)
175+
100L + (long) Atomic.RANDOM.nextInt(100)
177176
// @checkstyle MagicNumber (1 line)
178177
+ (long) StrictMath.pow(5.0d, (double) attempt + 1.0d)
179178
)

src/main/java/co/stateful/Counter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
/**
3636
* Counter.
3737
*
38-
* @author Yegor Bugayenko (yegor@tpc2.com)
39-
* @version $Id$
4038
* @since 0.1
4139
*/
4240
@Immutable

src/main/java/co/stateful/Counters.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
/**
3636
* Counters.
3737
*
38-
* @author Yegor Bugayenko (yegor@tpc2.com)
39-
* @version $Id$
4038
* @since 0.1
4139
*/
4240
@Immutable

src/main/java/co/stateful/Lock.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
/**
3636
* Lock.
3737
*
38-
* @author Yegor Bugayenko (yegor@tpc2.com)
39-
* @version $Id$
4038
* @since 0.3
4139
*/
4240
@Immutable

src/main/java/co/stateful/Locks.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
/**
3636
* Locks.
3737
*
38-
* @author Yegor Bugayenko (yegor@tpc2.com)
39-
* @version $Id$
4038
* @since 0.2
4139
*/
4240
@Immutable

src/main/java/co/stateful/RtCounter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
/**
4646
* Counter.
4747
*
48-
* @author Yegor Bugayenko (yegor@tpc2.com)
49-
* @version $Id$
5048
* @since 0.1
5149
* @checkstyle MultipleStringLiteralsCheck (500 lines)
5250
*/

src/main/java/co/stateful/RtCounters.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
/**
4444
* Counters.
4545
*
46-
* @author Yegor Bugayenko (yegor@tpc2.com)
47-
* @version $Id$
4846
* @since 0.1
4947
* @checkstyle MultipleStringLiteralsCheck (500 lines)
5048
*/

0 commit comments

Comments
 (0)