Skip to content

Commit

Permalink
#65 java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 5, 2017
1 parent 463482e commit aa89288
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion jcabi-ssh.iml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand Down
20 changes: 2 additions & 18 deletions src/main/java/com/jcabi/ssh/Sshd.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,24 +129,8 @@ public Sshd(final File path) throws IOException {
"-o", String.format("AuthorizedKeysFile=%s", keys),
"-o", "StrictModes=no"
).start();
new Thread(
new Runnable() {
@Override
public void run() {
new VerboseProcess(Sshd.this.process).stdout();
}
}
).start();
Runtime.getRuntime().addShutdownHook(
new Thread(
new Runnable() {
@Override
public void run() {
Sshd.this.close();
}
}
)
);
new Thread(() -> new VerboseProcess(this.process).stdout()).start();
Runtime.getRuntime().addShutdownHook(new Thread(this::close));
try {
TimeUnit.SECONDS.sleep(1L);
} catch (final InterruptedException ex) {
Expand Down

0 comments on commit aa89288

Please sign in to comment.