Skip to content

Commit b93d36a

Browse files
committed
chore(lang-enh): 🤖 try-with-resources, translated
Refers: #4
1 parent 6159564 commit b93d36a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/org/j6toj8/languageenhancements/trywithresources/TryWithResouces_AutoCloseable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class TryWithResouces_AutoCloseable {
77
// tag::code[]
88
static class Door implements AutoCloseable {
99
@Override
10-
public void close() { // chamado automaticamente pelo try-with-resources
10+
public void close() { // called automatically by try-with-resources
1111
System.out.println("Closed door.");
1212
}
1313
}

src/org/j6toj8/languageenhancements/trywithresources/TryWithResouces_Order.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ public class TryWithResouces_Order {
55
// tag::code[]
66
static class Door implements AutoCloseable {
77
@Override
8-
public void close() { // chamado automaticamente pelo try-with-resources
8+
public void close() { // called automatically by try-with-resources
99
System.out.println("Closed door.");
1010
}
1111
}
1212

1313
static class Drawer implements AutoCloseable {
1414
@Override
15-
public void close() { // chamado automaticamente pelo try-with-resources
15+
public void close() { // called automatically by try-with-resources
1616
System.out.println("Drawer closed.");
1717
}
1818
}

src/org/j6toj8/languageenhancements/trywithresources/TryWithResouces_ResourceInsideTry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class TryWithResouces_ResourceInsideTry {
55
// tag::code[]
66
static class Door implements AutoCloseable {
77
@Override
8-
public void close() { // chamado automaticamente pelo try-with-resources
8+
public void close() { // called automatically by try-with-resources
99
System.out.println("Closed door.");
1010
}
1111
}

0 commit comments

Comments
 (0)