Skip to content

Commit

Permalink
#50 clean
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 11, 2022
1 parent b100b96 commit a68ac3f
Show file tree
Hide file tree
Showing 61 changed files with 74 additions and 72 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="http://www.jare.io/images/logo.svg" width="64" height="64"/>
<img alt="logo" src="http://www.jare.io/images/logo.svg" width="64" height="64"/>

[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![Managed by Zerocracy](https://www.0crat.com/badge/C9V3GAG9H.svg)](https://www.0crat.com/p/C9V3GAG9H)
Expand Down
10 changes: 2 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,11 @@ software.
<version>1.2.17</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>2.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>2.2</version>
<scope>compile</scope>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.json</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/Entrance.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
8 changes: 3 additions & 5 deletions src/main/java/io/jare/Logs.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down Expand Up @@ -30,8 +30,6 @@
import io.jare.model.Base;
import io.jare.model.Domain;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URI;
Expand Down Expand Up @@ -122,11 +120,11 @@ public void run() {
private long process(final String name) throws IOException {
final Ocket ocket = this.bucket.ocket(name);
final Path path = Files.createTempFile("jare", ".gz");
ocket.read(new FileOutputStream(path.toFile()));
ocket.read(Files.newOutputStream(path));
final BufferedReader input = new BufferedReader(
new InputStreamReader(
new GZIPInputStream(
new FileInputStream(path.toFile())
Files.newInputStream(path)
)
)
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/cached/CdBase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/cached/CdDomain.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/cached/CdUsage.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/cached/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/dynamo/DyBase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/dynamo/DyDomain.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/dynamo/DyUsage.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/dynamo/DyUser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/dynamo/Dynamo.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/dynamo/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/fake/FkBase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/fake/FkDomain.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/fake/FkUsage.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/fake/FkUser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/fake/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/model/Base.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/model/Domain.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/model/Usage.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/model/User.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/io/jare/model/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand All @@ -20,4 +20,10 @@
* in connection with the software or the use or other dealings in the
* software.
*/

/**
* The model.
*
* @since 0.1
*/
package io.jare.model;
2 changes: 1 addition & 1 deletion src/main/java/io/jare/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/io/jare/smarts/SafeUser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down Expand Up @@ -69,12 +69,15 @@ public void add(final String name) throws IOException {

/**
* When name is not valid.
*
* @since 0.1
*/
public static final class InvalidNameException extends IOException {
/**
* Serialization marker.
*/
private static final long serialVersionUID = -869776873934626730L;

/**
* Ctor.
* @param name Domain name
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/smarts/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/Destination.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/RqUser.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/RsPage.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkAdd.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkApp.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkAppAuth.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkAppFallback.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkDelete.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkDomains.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkIndex.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkInvalidate.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/TkRefresh.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/jare/tk/TkRelay.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down Expand Up @@ -163,6 +163,7 @@ public Iterable<String> head() throws IOException {
new Skipped<>(1, req.head())
);
}

@Override
public InputStream body() throws IOException {
return req.body();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jare/tk/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/LogsTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/cached/CdUsageTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/cached/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/dynamo/DyBaseITCase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/dynamo/DyDomainITCase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/dynamo/DyUsageITCase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/dynamo/DyUsageTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/dynamo/DyUserITCase.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/dynamo/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/smarts/SafeUserTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/smarts/package-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/jare/tk/DestinationTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 Yegor Bugayenko
Expand Down
Loading

0 comments on commit a68ac3f

Please sign in to comment.