Skip to content

Commit

Permalink
[RESTEASY-1974] Checkstyle - Uppercase L instead of l in long
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Terem authored and asoldano committed Nov 16, 2018
1 parent a6922fe commit 6f6fca0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class LongCounter {

public LongCounter() {
super();
this.value = 0l;
this.value = 0L;
}

public Long getValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Class<? extends Long> getType() {
public Long getValue(String value) {

if(value == null){
return 0l;
return 0L;
}

return super.getValue(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class MillisecondTimeUnits {
public static final int MINUTE = 60000;
public static final int HOUR = 3600000;
public static final int DAY = 86400000;
public static final long MONTH = 2678400000l;
public static final long YEAR = 32140800000l;
public static final long MONTH = 2678400000L;
public static final long YEAR = 32140800000L;
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void run()
for (int i = 0; i < 3; i++) threads[i].start();
for (int i = 0; i < 3; i++) threads[i].join();

Assert.assertEquals(30l, counter.get());
Assert.assertEquals(30L, counter.get());
}

@Test
Expand Down Expand Up @@ -130,7 +130,7 @@ public void run()
for (int i = 0; i < 3; i++) threads[i].start();
for (int i = 0; i < 3; i++) threads[i].join();

Assert.assertEquals(30l, counter.get());
Assert.assertEquals(30L, counter.get());
}

@Test
Expand Down Expand Up @@ -166,7 +166,7 @@ public void run()
for (int i = 0; i < 3; i++) threads[i].start();
for (int i = 0; i < 3; i++) threads[i].join();

Assert.assertEquals(30l, counter.get());
Assert.assertEquals(30L, counter.get());
}

@Test
Expand Down Expand Up @@ -201,7 +201,7 @@ public void run()
for (int i = 0; i < 3; i++) threads[i].start();
for (int i = 0; i < 3; i++) threads[i].join();

Assert.assertEquals(30l, counter.get());
Assert.assertEquals(30L, counter.get());
}

@Test
Expand Down Expand Up @@ -245,7 +245,7 @@ public void run()
for (int i = 0; i < 3; i++) threads[i].start();
for (int i = 0; i < 3; i++) threads[i].join();

Assert.assertEquals(30l, counter.get());
Assert.assertEquals(30L, counter.get());
}

private void callProxy(MyResource proxy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public String doGet(@QueryParam("int") int v)
@Produces("application/long")
public String doGet(@QueryParam("long") long v)
{
Assert.assertEquals(0l, v);
Assert.assertEquals(0L, v);
return "content";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public boolean isStale()
protected boolean useDns = false;
protected boolean userPrincipalAsPrivateSelector = false;
protected String dnsUri;
protected long cacheTimeout = 3600000l; // 1 hour
protected long cacheTimeout = 3600000L; // 1 hour
protected String keyStorePath;
protected String keyStoreFile;
protected String keyStorePassword;
Expand Down
2 changes: 1 addition & 1 deletion tjws/src/main/java/Acme/Serve/Serve.java
Original file line number Diff line number Diff line change
Expand Up @@ -4151,7 +4151,7 @@ else if (o instanceof String[])
if (cc.getMaxAge() >= 0)
{
sb.append("; expires=");
sb.append(expdatefmt.format(new Date(new Date().getTime() + 1000l * cc.getMaxAge())));
sb.append(expdatefmt.format(new Date(new Date().getTime() + 1000L * cc.getMaxAge())));
}
if (cc.getPath() != null && cc.getPath().length() > 0)
{
Expand Down

0 comments on commit 6f6fca0

Please sign in to comment.