Skip to content

Commit 9b5e1e0

Browse files
committed
lint
1 parent dfc4d3b commit 9b5e1e0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/main/java/com/timgroup/statsd/CgroupReader.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
import java.util.regex.Pattern;
99

1010
/**
11-
* A reader class that retrieves the current container ID parsed from a the cgroup file.
11+
* A reader class that retrieves the current container ID parsed from a the
12+
* cgroup file.
1213
*
1314
*/
1415
class CgroupReader {
1516
private static final Path CGROUP_PATH = Paths.get("/proc/self/cgroup");
1617
private static final String CONTAINER_SOURCE = "[0-9a-f]{64}";
1718
private static final String TASK_SOURCE = "[0-9a-f]{32}-\\d+";
1819
private static final Pattern LINE_RE = Pattern.compile("^\\d+:[^:]*:(.+)$", Pattern.MULTILINE | Pattern.UNIX_LINES);
19-
private static final Pattern CONTAINER_RE =
20-
Pattern.compile(
20+
private static final Pattern CONTAINER_RE = Pattern.compile(
2121
"(" + CONTAINER_SOURCE + "|" + TASK_SOURCE + ")(?:.scope)?$");
2222

2323
private boolean readOnce = false;
@@ -27,7 +27,8 @@ class CgroupReader {
2727
* Parses /proc/self/cgroup and returns the container ID if available.
2828
*
2929
* @throws IOException
30-
* if /proc/self/cgroup is readable and still an I/O error occurs reading from the stream
30+
* if /proc/self/cgroup is readable and still an I/O error
31+
* occurs reading from the stream
3132
*/
3233
public String getContainerID() throws IOException {
3334
if (readOnce) {
@@ -56,7 +57,7 @@ private String read(Path path) throws IOException {
5657
* Parses a Cgroup file content and returns the corresponding container ID.
5758
*
5859
* @param cgroupsContent
59-
* Cgroup file content
60+
* Cgroup file content
6061
*/
6162
public static String parse(final String cgroupsContent) {
6263
final Matcher lines = LINE_RE.matcher(cgroupsContent);

0 commit comments

Comments
 (0)