Skip to content

Commit

Permalink
Make inner classes static where possible in tycho-core
Browse files Browse the repository at this point in the history
Using JDT UI "Make inner classes static where possible" clean-up on
Tycho core
  • Loading branch information
vogella authored and laeubi committed Dec 6, 2023
1 parent da859cc commit 1999492
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public String toString() {
}
}

private final class VisiblePackages {
private static final class VisiblePackages {
private final Map<BundleRevision, Set<AccessRule>> visiblePackages = new HashMap<>();
private final BundleRevision consumerHost;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public final OutputStream getOutputStream(IArtifactDescriptor descriptor) throws
}
}

private class CommittingArtifactOutputStream extends OutputStream implements IStateful {
private static class CommittingArtifactOutputStream extends OutputStream implements IStateful {
final IArtifactSink artifactSink;
final OutputStream artifactOutputStream;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public void close() {

}

private final class MappingRule {
private static final class MappingRule {
public final String filter;
public final String urlPattern;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class LogVerifier extends Verifier {

private static boolean WRITE_TO_CONSOLE = false;

private class MemoryLog implements Logger {
private static class MemoryLog implements Logger {

final StringBuilder errors = new StringBuilder();
final StringBuilder warnings = new StringBuilder();
Expand Down

0 comments on commit 1999492

Please sign in to comment.