Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,7 @@ private Filter createDebuggerFilter() {
filter = new Filter() {
@Override
public boolean isLoggable(LogRecord record) {
try (ServerSocket s = new ServerSocket(port, 1, bind)) {

try (ServerSocket ignored = new ServerSocket(port, 1, bind)) {
} catch (IOException e) {
//if we fail to bind the JVM is still waiting for a debugger to attach
//no debugger means log the warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private void installExtensionArtifacts(Collection<Extension> extensions) {
e.getArtifact().getArtifactId() + "-deployment", e.getArtifact().getClassifier(),
e.getArtifact().getType(), e.getArtifact().getVersion());
jarPath = getTmpPath(deploymentJarCoords);
try (FileSystem zip = ZipUtils.newZip(jarPath)) {
try (FileSystem ignored = ZipUtils.newZip(jarPath)) {
} catch (IOException e1) {
throw new UncheckedIOException(e1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public String test() throws IOException {

// Test 1#
// Verify that the connection can be obtained
try (Connection connection = xaDatasource.getConnection()) {
try (Connection ignored = xaDatasource.getConnection()) {
//The main goal is to check that the connection could be opened
} catch (SQLException e) {
throw new RuntimeException(e);
Expand Down