GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (58)

java/io/mcarle/sciurus/cache/redis/RedisData.java (26 issues)

1
package io.mcarle.sciurus.cache.redis;
0 ignored issues
show
It is a best practice to supply a copyright/licence header in your code. Your organisation probably has a template for that.
Loading history...
2
3
import java.io.*;
0 ignored issues
show
Comprehensibility introduced by
Instead of using wildcard imports, consider only importing the actual classes needed.
Loading history...
4
import java.nio.ByteBuffer;
5
6
class RedisData implements Serializable {
0 ignored issues
show
Comprehensibility Best Practice introduced by
Serializable classes are strongly recommended to have a static final long serialVersionUID to ensure that sender and receiver are using the same object version.
Loading history...
Move this left curly brace to the beginning of next line of code.
Loading history...
7
8
    private final Serializable value;
0 ignored issues
show
Make this line start at column 3.
Loading history...
9
10 1
    RedisData(final Serializable value) {
0 ignored issues
show
Move this left curly brace to the beginning of next line of code.
Loading history...
11 1
        this.value = value;
0 ignored issues
show
Make this line start at column 5.
Loading history...
12 1
    }
13
14
    static ByteBuffer toByteBuffer(final RedisData redisData) {
0 ignored issues
show
Move this left curly brace to the beginning of next line of code.
Loading history...
15
        try {
0 ignored issues
show
Make this line start at column 5.
Loading history...
Move this left curly brace to the beginning of next line of code.
Loading history...
16 1
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
0 ignored issues
show
Make this line start at column 7.
Loading history...
17 1
            ObjectOutputStream oos = new ObjectOutputStream(baos);
18 1
            oos.writeObject(redisData);
19 1
            oos.close();
20 1
            return ByteBuffer.wrap(baos.toByteArray());
21 1
        } catch (IOException e) {
0 ignored issues
show
Move this left curly brace to the beginning of next line of code.
Loading history...
Move this "catch" keyword to a new dedicated line.
Loading history...
22 1
            throw new RuntimeException(e);
0 ignored issues
show
Make this line start at column 7.
Loading history...
Dedicated exceptions should be preferred over throwing the generic Exception.
Loading history...
23
        }
24
    }
25
26
    static RedisData fromByteBuffer(final ByteBuffer byteBuffer) {
0 ignored issues
show
Move this left curly brace to the beginning of next line of code.
Loading history...
27
        try {
0 ignored issues
show
Make this line start at column 5.
Loading history...
Move this left curly brace to the beginning of next line of code.
Loading history...
28 1
            byte[] data = new byte[byteBuffer.remaining()];
0 ignored issues
show
Make this line start at column 7.
Loading history...
29 1
            byteBuffer.get(data);
30 1
            ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));
31 1
            Object o = ois.readObject();
32 1
            ois.close();
33 1
            return (RedisData) o;
34 1
        } catch (Exception e) {
0 ignored issues
show
Move this left curly brace to the beginning of next line of code.
Loading history...
Move this "catch" keyword to a new dedicated line.
Loading history...
Catch a list of specific exception subtypes instead.
Loading history...
35 1
            throw new RuntimeException(e);
0 ignored issues
show
Make this line start at column 7.
Loading history...
Dedicated exceptions should be preferred over throwing the generic Exception.
Loading history...
36
        }
37
    }
38
39
    Serializable getCachedValue() {
0 ignored issues
show
Move this left curly brace to the beginning of next line of code.
Loading history...
40 1
        return value;
0 ignored issues
show
Make this line start at column 5.
Loading history...
41
    }
42
}
43